mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
24 lines
540 B
Nix
24 lines
540 B
Nix
{ 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 = stdenv.lib.licenses.unfree;
|
|
maintainers = [ stdenv.lib.maintainers.oxij ];
|
|
};
|
|
}
|