2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, runtimeShell }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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)";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = [ lib.maintainers.oxij ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|