orthorobot: make reproducible

This commit is contained in:
Andrew Marshall 2023-06-10 00:24:27 -04:00
parent c0a48fcaf5
commit a7b2dbf48d

View file

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