c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
24 lines
542 B
Nix
24 lines
542 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 = "An example package with unfree license (for testing)";
|
|
license = lib.licenses.unfree;
|
|
maintainers = [ lib.maintainers.oxij ];
|
|
mainProgram = "hello-unfree";
|
|
};
|
|
}
|