bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
24 lines
539 B
Nix
24 lines
539 B
Nix
{ lib, stdenv, runtimeShell }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "example-unfree-package";
|
|
version = "1.0";
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat > $out/bin/hello-unfree << EOF
|
|
#!${runtimeShell}
|
|
echo "Hello, you are running an unfree system!"
|
|
EOF
|
|
chmod +x $out/bin/hello-unfree
|
|
'';
|
|
|
|
meta = {
|
|
description = "Example package with unfree license (for testing)";
|
|
license = lib.licenses.unfree;
|
|
maintainers = [ lib.maintainers.oxij ];
|
|
mainProgram = "hello-unfree";
|
|
};
|
|
}
|