Simplify dummy

This commit is contained in:
Rodrigo Arias 2020-08-25 14:52:18 +02:00
parent 76b0a239e3
commit cff653d164

View File

@ -2,23 +2,21 @@
stdenv
}:
{
hello = stdenv.mkDerivation rec {
name = "dummy";
stdenv.mkDerivation rec {
name = "dummy";
src = null;
dontUnpack = true;
dontBuild = true;
src = null;
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
installPhase = ''
mkdir -p $out/bin
cat > $out/bin/dummy <<EOF
#!/bin/sh
echo Hello world!
EOF
cat > $out/bin/dummy <<EOF
#!/bin/sh
echo Hello world!
EOF
chmod +x $out/bin/dummy
'';
};
chmod +x $out/bin/dummy
'';
}