Files
2026-10-12 10:26:14 +02:00

46 lines
1.1 KiB
Nix

{ lib
, appimageTools
, fetchurl
,
}:
let
pname = "photocraft";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/storytold/photocraft/releases/download/v${version}/photocraft-${version}-linux-x86_64.AppImage";
hash = "sha256-h+vONrzfazHRapyiLOKfmtjbaBheTZgRiADRwt54rEI=";
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm644 ${src} $out/share/${pname}/source.AppImage
mkdir -p $out/share/applications
cat > $out/share/applications/${pname}.desktop <<EOF
[Desktop Entry]
Name=PhotoCraft
Comment=Open-source image editor
Exec=${pname} %F
Terminal=false
Type=Application
Categories=Graphics;RasterGraphics;
StartupNotify=true
EOF
'';
meta = {
description = "Open-source image editor";
homepage = "https://github.com/storytold/photocraft";
downloadPage = "https://github.com/storytold/photocraft/releases";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "photocraft";
};
}