with import ./config.nix; rec { hello = mkDerivation { name = "hello"; outputs = [ "out" "dev" ]; meta.outputsToInstall = [ "out" ]; buildCommand = '' mkdir -p $out/bin $dev/bin cat > $out/bin/hello < $dev/bin/hello2 < $out/bin/hello < $out/bin/env <&2 exit 1 fi exec env EOF chmod +x $out/bin/env ''; }; }