nixpkgs/pkgs/applications/misc/hello-unfree/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
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/'
2024-06-09 23:07:45 +02:00

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";
};
}