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