depot/pkgs/by-name/sl/sly/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

34 lines
878 B
Nix

{
lib,
fetchFromGitHub,
flutter,
}:
let
version = "0.4.0";
src = fetchFromGitHub {
owner = "kra-mo";
repo = "sly";
rev = "v${version}";
hash = "sha256-P7LhhXQQDRsDQ8bZgfvWazLRMYVGhFhMTD41fgs718g=";
};
in
flutter.buildFlutterApplication {
pname = "sly";
inherit version src;
pubspecLock = lib.importJSON ./pubspec.lock.json;
postInstall = ''
install -Dm0644 ./packaging/linux/page.kramo.Sly.svg $out/share/icons/hicolor/scalable/apps/page.kramo.Sly.svg
install -Dm0644 ./packaging/linux/page.kramo.Sly.desktop $out/share/applications/page.kramo.Sly.desktop
'';
meta = {
description = "Friendly image editor";
homepage = "https://github.com/kra-mo/sly";
mainProgram = "sly";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ aucub ];
platforms = lib.platforms.linux;
};
}