Skip to content

Commit 700cc1b

Browse files
flut-renamer: init at 1.5.4 (#382448)
2 parents 0e1b2ec + 40c90cf commit 700cc1b

File tree

3 files changed

+1107
-0
lines changed

3 files changed

+1107
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
flutter324,
5+
}:
6+
7+
flutter324.buildFlutterApplication rec {
8+
pname = "flut-renamer";
9+
version = "1.5.4";
10+
11+
src = fetchFromGitHub {
12+
owner = "sun-jiao";
13+
repo = "flut-renamer";
14+
tag = version;
15+
hash = "sha256-maPmZwsmmjyvHgutWF+8CIw2NA6HCB4/PPiiCAG+n8I=";
16+
};
17+
18+
pubspecLock = lib.importJSON ./pubspec.lock.json;
19+
20+
postInstall = ''
21+
install -Dm644 assets/desktop.png $out/share/pixmaps/flut-renamer.png
22+
install -Dm644 appimage/flut-renamer.desktop $out/share/applications/flut-renamer.desktop
23+
substituteInPlace $out/share/applications/flut-renamer.desktop \
24+
--replace-fail "Icon=desktop" "Icon=flut-renamer"
25+
'';
26+
27+
meta = {
28+
description = "Bulk file renamer written in flutter";
29+
homepage = "https://github.com/sun-jiao/flut-renamer";
30+
mainProgram = "flut-renamer";
31+
platforms = lib.platforms.linux;
32+
license = with lib.licenses; [ gpl3Plus ];
33+
maintainers = with lib.maintainers; [ nayeko ];
34+
};
35+
}

0 commit comments

Comments
 (0)