Created
April 8, 2019 18:04
-
-
Save srhb/b3e9d35576fb441d2d2edaf19875a018 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 ? import <nixpkgs> {} }: | |
let | |
test = pkgs.writeTextFile { | |
name = "weird"; | |
text = '' | |
#!${pkgs.stdenv.shell} | |
echo RUNNING | |
echo contents > testfile | |
''; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "test"; | |
phases = "installPhase"; | |
buildInputs = [ test ]; | |
installPhase = "cp testfile $out"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment