Skip to content

Instantly share code, notes, and snippets.

@ixxie
Created April 16, 2017 15:43
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 ixxie/3a131cdefdd3ee60ebd77f7e013bd63b to your computer and use it in GitHub Desktop.
Save ixxie/3a131cdefdd3ee60ebd77f7e013bd63b to your computer and use it in GitHub Desktop.
{ pkgs, stdenv}:
let
version = "0.0.1";
in stdenv.mkDerivation
{
name = "script-${version}";
src = ./.;
phases = [ "installPhase" ];
installPhase =
''
cp ./* $out/.
substituteAllInPlace $out/script.sh
ln -s script "$out/main.sh"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment