Skip to content

Instantly share code, notes, and snippets.

@NWuensche
Created September 8, 2017 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NWuensche/35fac5da53eedfab29f63343357b82f2 to your computer and use it in GitHub Desktop.
Save NWuensche/35fac5da53eedfab29f63343357b82f2 to your computer and use it in GitHub Desktop.
{pkgs, stdenv}:
stdenv.mkDerivation rec {
name = "Planescape-Enhanced";
src = ./install.sh;
unpackPhase = "true";
installPhase = ''
mkdir -p $out
cp $src $out/install.sh
patchShebangs $out/install.sh
substituteInPlace $out/install.sh \
--replace /bin/rm "/run/current-system/sw/bin/rm"
sh $out/install.sh
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment