24 lines
468 B
Nix
24 lines
468 B
Nix
{ lib, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "hello-world";
|
|
version = "1.0.0";
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat > $out/bin/hello-world <<'SCRIPT'
|
|
#!/bin/sh
|
|
echo "Hello, world!"
|
|
SCRIPT
|
|
chmod +x $out/bin/hello-world
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tiny hello-world program used as an example package";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|