3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/hello-unfree/default.nix
2021-01-15 14:24:03 +07:00

24 lines
531 B
Nix

{ lib, 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 = lib.licenses.unfree;
maintainers = [ lib.maintainers.oxij ];
};
}