1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/gimp.nix

28 lines
640 B
Nix
Raw Normal View History

2025-12-27 22:22:54 +01:00
{
gimp,
fetchurl,
runCommand,
symlinkJoin,
writers,
}:
2024-10-25 21:09:24 +02:00
let
bring-out-the-gimp = fetchurl {
url = "https://c.krebsco.de/bring-out-the-gimp.png";
hash = "sha256-k42M5j58OzbcMJwx9CeM2mD2VsVwPKHwJvU55+Rkowc=";
};
data-dir-prefix = "share/gimp/2.0";
data-dir = symlinkJoin {
name = "gimp";
paths = [
2025-12-27 22:22:54 +01:00
(runCommand "splash" { } ''
2024-10-25 21:09:24 +02:00
mkdir -p $out/${data-dir-prefix}/images
install ${bring-out-the-gimp} $out/share/gimp/2.0/images/gimp-splash.png
'')
gimp
];
};
2025-12-27 22:22:54 +01:00
in
writers.writeDashBin "gimp" ''
2024-10-25 21:09:24 +02:00
exec env GIMP2_DATADIR=${data-dir}/${data-dir-prefix} ${gimp}/bin/gimp "$@"
''