1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/applications/misc/hello-unfree/default.nix

24 lines
508 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, runtimeShell }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "example-unfree-package";
version = "1.0";
2021-08-03 13:04:36 +01:00
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)";
2021-01-15 05:42:41 +00:00
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.oxij ];
};
}