Files
nixpkgs/pkgs/by-name/pi/pikopixel/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.3 KiB
Nix

{
lib,
clangStdenv,
fetchurl,
gnustep-back,
wrapGNUstepAppsHook,
}:
clangStdenv.mkDerivation rec {
pname = "pikopixel";
version = "1.0-b10";
src = fetchurl {
url = "https://twilightedge.com/downloads/PikoPixel.Sources.${version}.tar.gz";
sha256 = "1b27npgsan2nx1p581b9q2krx4506yyd6s34r4sf1r9x9adshm77";
};
sourceRoot = "PikoPixel.Sources.${version}/PikoPixel";
nativeBuildInputs = [
wrapGNUstepAppsHook
];
buildInputs = [
gnustep-back
];
# Fix the Exec and Icon paths in the .desktop file, and save the file in the
# correct place.
# postInstall gets redefined in gnustep.make's builder.sh, so we use preFixup
preFixup = ''
mkdir -p $out/share/applications
sed \
-e "s@^Exec=.*\$@Exec=$out/bin/PikoPixel %F@" \
-e "s@^Icon=.*/local@Icon=$out@" \
PikoPixel.app/Resources/PikoPixel.desktop > $out/share/applications/PikoPixel.desktop
'';
meta = with lib; {
description = "Application for drawing and editing pixel-art images";
mainProgram = "PikoPixel";
homepage = "https://twilightedge.com/mac/pikopixel/";
downloadPage = "https://twilightedge.com/mac/pikopixel/";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
};
}