30 lines
425 B
Nix
30 lines
425 B
Nix
|
|
{
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "example-b";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat > $out/bin/example-b << 'EOF'
|
|
#!/bin/sh
|
|
echo "Hello from example-b!"
|
|
EOF
|
|
chmod +x $out/bin/example-b
|
|
'';
|
|
|
|
meta = {
|
|
description = "Example package B";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|