2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, runtimeShell }:
|
2018-06-09 21:14:36 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "example-unfree-package";
|
2018-06-09 21:14:36 +01:00
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
phases = [ "installPhase" "fixupPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cat > $out/bin/hello-unfree << EOF
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
2018-06-09 21:14:36 +01:00
|
|
|
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 05:42:41 +00:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
maintainers = [ lib.maintainers.oxij ];
|
2018-06-09 21:14:36 +01:00
|
|
|
};
|
|
|
|
}
|