Created
September 8, 2017 10:56
-
-
Save NWuensche/b920a762b4ff954260dc2ddd11e70d56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{pkgs, stdenv, gcc, zlib, lib}: | |
stdenv.mkDerivation rec { | |
name = "Planescape-Enhanced"; | |
src = ./install.sh; | |
unpackPhase = "true"; | |
installPhase = '' | |
set -x | |
mkdir -p $out | |
substitute $src install.sh \ | |
--replace /bin/rm "/run/current-system/sw/bin/rm" | |
patchShebangs install.sh | |
sh install.sh | |
for exe in $out/bin/* ; do | |
patchelf --interpreter "$(cat ${gcc}/nix-support/dynamic-linker)" --set-rpath ${lib.makeLibraryPath [ zlib ]} | |
done | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment