pop-wallpapers: refactor Makefile handling

This commit is contained in:
Jasi
2025-06-24 13:46:02 -04:00
parent 500dc1e7fc
commit a108dbc79f
@@ -17,10 +17,20 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-JST5Rt4Ec1lRu62PUt98S2G1vKthAyOSpyCpuCnkGmw=";
};
# 1. Future-proofs calls to imagemagick's convert feature
# 2. Replace hard-coded /usr path to build-system `datadir`
postPatch = ''
substituteInPlace Makefile \
--replace-fail "convert" "magick" \
--replace-fail "/usr/share" "\$(datadir)"
'';
nativeBuildInputs = [ imagemagick ];
makeFlags = [ "prefix=$(out)" ];
enableParallelBuilding = true;
passthru.updateScript = nix-update-script { };
meta = {