mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
25 lines
539 B
Nix
25 lines
539 B
Nix
{ lib, stdenv, runtimeShell }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "example-unfree-package";
|
|
version = "1.0";
|
|
|
|
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 = "Example package with unfree license (for testing)";
|
|
license = lib.licenses.unfree;
|
|
maintainers = [ lib.maintainers.oxij ];
|
|
mainProgram = "hello-unfree";
|
|
};
|
|
}
|