8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
540 B
Nix
23 lines
540 B
Nix
{ stdenv, runtimeShell }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "example-unfree-package";
|
|
version = "1.0";
|
|
|
|
phases = [ "installPhase" "fixupPhase" ];
|
|
|
|
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 = "An example package with unfree license (for testing)";
|
|
license = stdenv.lib.licenses.unfree;
|
|
maintainers = [ stdenv.lib.maintainers.oxij ];
|
|
};
|
|
}
|