-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dr56ekgbb
committed
Oct 7, 2024
1 parent
cd5bb9c
commit 4bfab45
Showing
2 changed files
with
988 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
lib, | ||
fetchFromGitHub, | ||
flutter, | ||
stdenv, | ||
autoPatchelfHook, | ||
makeDesktopItem, | ||
copyDesktopItems, | ||
}: | ||
let | ||
version = "0.3.4"; | ||
src = fetchFromGitHub { | ||
owner = "kra-mo"; | ||
repo = "sly"; | ||
rev = "v${version}"; | ||
hash = "sha256-5YEiUAagB6dwm4zJuhEGcWyJwTwlABNFzLYv27eKZKQ="; | ||
}; | ||
in | ||
flutter.buildFlutterApplication { | ||
pname = "sly"; | ||
|
||
inherit version src; | ||
|
||
desktopItems = [ | ||
(makeDesktopItem { | ||
name = "Sly"; | ||
exec = "sly"; | ||
comment = "Friendly image editor"; | ||
icon = "page.kramo.Sly"; | ||
genericName = "Image Editor"; | ||
desktopName = "Sly"; | ||
categories = [ | ||
"Utility" | ||
"Graphics" | ||
"2DGraphics" | ||
"RasterGraphics" | ||
]; | ||
keywords = [ | ||
"image" | ||
"photo" | ||
"editor" | ||
]; | ||
}) | ||
]; | ||
|
||
pubspecLock = lib.importJSON ./pubspec.lock.json; | ||
|
||
nativeBuildInputs = [ | ||
copyDesktopItems | ||
autoPatchelfHook | ||
]; | ||
|
||
postInstall = '' | ||
install -Dm0644 ${src}/packaging/linux/page.kramo.Sly.svg $out/share/icons/hicolor/symbolic/apps/page.kramo.Sly.svg | ||
''; | ||
|
||
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.darwin ++ [ "x86_64-linux" ]; | ||
broken = stdenv.hostPlatform.isDarwin; | ||
}; | ||
} |
Oops, something went wrong.