1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

mari0: make reproducible

This commit is contained in:
Andrew Marshall 2023-06-10 00:18:14 -04:00
parent bf818c857f
commit aea09ca707

View file

@ -5,6 +5,7 @@
, makeDesktopItem
, makeWrapper
, stdenv
, strip-nondeterminism
, zip
}:
@ -22,6 +23,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
copyDesktopItems
makeWrapper
strip-nondeterminism
zip
];
@ -39,6 +41,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
zip -9 -r mari0.love ./*
strip-nondeterminism --type zip mari0.love
install -Dm444 -t $out/share/games/lovegames/ mari0.love
makeWrapper ${love}/bin/love $out/bin/mari0 \
--add-flags $out/share/games/lovegames/mari0.love