initial commit
This commit is contained in:
29
pkgs/example-b/default.nix
Normal file
29
pkgs/example-b/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user