0
0
Fork 0
forked from lix-project/lix
lix/tests/run.nix
2017-11-20 18:36:36 +01:00

17 lines
318 B
Nix

with import ./config.nix;
{
hello = mkDerivation {
name = "hello";
buildCommand =
''
mkdir -p $out/bin
cat > $out/bin/hello <<EOF
#! ${shell}
who=\$1
echo "Hello \''${who:-World} from $out/bin/hello"
EOF
chmod +x $out/bin/hello
'';
};
}