mari0: make reproducible

This commit is contained in:
Andrew Marshall
2023-06-10 01:25:21 -04:00
parent bf818c857f
commit aea09ca707
+3
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