Skip to content

Commit ed18f91

Browse files
authored
sly: init at 0.4.0 (#347183)
2 parents 13dc9a8 + cff9234 commit ed18f91

File tree

2 files changed

+956
-0
lines changed

2 files changed

+956
-0
lines changed

pkgs/by-name/sl/sly/package.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
flutter,
5+
}:
6+
let
7+
version = "0.4.0";
8+
src = fetchFromGitHub {
9+
owner = "kra-mo";
10+
repo = "sly";
11+
rev = "v${version}";
12+
hash = "sha256-P7LhhXQQDRsDQ8bZgfvWazLRMYVGhFhMTD41fgs718g=";
13+
};
14+
in
15+
flutter.buildFlutterApplication {
16+
pname = "sly";
17+
inherit version src;
18+
19+
pubspecLock = lib.importJSON ./pubspec.lock.json;
20+
21+
postInstall = ''
22+
install -Dm0644 ./packaging/linux/page.kramo.Sly.svg $out/share/icons/hicolor/scalable/apps/page.kramo.Sly.svg
23+
install -Dm0644 ./packaging/linux/page.kramo.Sly.desktop $out/share/applications/page.kramo.Sly.desktop
24+
'';
25+
26+
meta = {
27+
description = "Friendly image editor";
28+
homepage = "https://github.com/kra-mo/sly";
29+
mainProgram = "sly";
30+
license = with lib.licenses; [ gpl3Plus ];
31+
maintainers = with lib.maintainers; [ aucub ];
32+
platforms = lib.platforms.linux;
33+
};
34+
}

0 commit comments

Comments
 (0)