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