mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
2852a486f8
(cherry picked from commit f459ca547f
)
17 lines
318 B
Nix
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
|
|
'';
|
|
};
|
|
}
|