doc: Remove indefinite article and ending period from example meta.description

so that meta.description examples shown in the documentation
align with recommendations given in the "Meta attributes" section
in pkgs/README.md.

The changes were made with the following commands:
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*"([Aa]n?|[Tt]he)\s' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/"([Aa]n?|[Tt]he)\s(.)/"\U\2/'
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*".*\."' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/\."/"/'
This commit is contained in:
Alexis Hildebrandt 2024-07-20 09:08:30 +02:00
parent 14ebe4e318
commit ab42ca141a
8 changed files with 10 additions and 10 deletions

View File

@ -84,7 +84,7 @@ mkCoqDerivation {
[ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap mathcomp-bigenough ]; [ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap mathcomp-bigenough ];
meta = { meta = {
description = "A Coq/SSReflect Library for Monoidal Rings and Multinomials"; description = "Coq/SSReflect Library for Monoidal Rings and Multinomials";
license = lib.licenses.cecill-c; license = lib.licenses.cecill-c;
}; };
} }

View File

@ -206,7 +206,7 @@ buildNpmPackage rec {
NODE_OPTIONS = "--openssl-legacy-provider"; NODE_OPTIONS = "--openssl-legacy-provider";
meta = { meta = {
description = "A modern web UI for various torrent clients with a Node.js backend and React frontend"; description = "Modern web UI for various torrent clients with a Node.js backend and React frontend";
homepage = "https://flood.js.org"; homepage = "https://flood.js.org";
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ winter ]; maintainers = with lib.maintainers; [ winter ];

View File

@ -113,7 +113,7 @@ buildDunePackage rec {
meta = { meta = {
homepage = "https://github.com/flowtype/ocaml-wtf8"; homepage = "https://github.com/flowtype/ocaml-wtf8";
description = "WTF-8 is a superset of UTF-8 that allows unpaired surrogates."; description = "WTF-8 is a superset of UTF-8 that allows unpaired surrogates";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ lib.maintainers.eqyiel ]; maintainers = [ lib.maintainers.eqyiel ];
}; };

View File

@ -158,7 +158,7 @@ $ nix-generate-from-cpan XML::Simple
}; };
propagatedBuildInputs = [ XMLNamespaceSupport XMLSAX XMLSAXExpat ]; propagatedBuildInputs = [ XMLNamespaceSupport XMLSAX XMLSAXExpat ];
meta = { meta = {
description = "An API for simple XML files"; description = "API for simple XML files";
license = with lib.licenses; [ artistic1 gpl1Plus ]; license = with lib.licenses; [ artistic1 gpl1Plus ];
}; };
}; };

View File

@ -993,7 +993,7 @@ buildPythonPackage rec {
meta = { meta = {
changelog = "https://github.com/blaze/datashape/releases/tag/${version}"; changelog = "https://github.com/blaze/datashape/releases/tag/${version}";
homepage = "https://github.com/ContinuumIO/datashape"; homepage = "https://github.com/ContinuumIO/datashape";
description = "A data description language"; description = "Data description language";
license = lib.licenses.bsd2; license = lib.licenses.bsd2;
}; };
} }
@ -1118,7 +1118,7 @@ buildPythonPackage rec {
meta = { meta = {
changelog = "https://github.com/pyFFTW/pyFFTW/releases/tag/v${version}"; changelog = "https://github.com/pyFFTW/pyFFTW/releases/tag/v${version}";
description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms"; description = "Pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
homepage = "http://hgomersall.github.com/pyFFTW"; homepage = "http://hgomersall.github.com/pyFFTW";
license = with lib.licenses; [ bsd2 bsd3 ]; license = with lib.licenses; [ bsd2 bsd3 ];
}; };

View File

@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-jtBw4ahSl88L0iuCXxQgZVm1EcboWRJMNtjxLVTtzts="; cargoHash = "sha256-jtBw4ahSl88L0iuCXxQgZVm1EcboWRJMNtjxLVTtzts=";
meta = { meta = {
description = "A fast line-oriented regex search tool, similar to ag and ack"; description = "Fast line-oriented regex search tool, similar to ag and ack";
homepage = "https://github.com/BurntSushi/ripgrep"; homepage = "https://github.com/BurntSushi/ripgrep";
license = lib.licenses.unlicense; license = lib.licenses.unlicense;
maintainers = []; maintainers = [];
@ -1000,7 +1000,7 @@ rustPlatform.buildRustPackage rec {
doCheck = false; doCheck = false;
meta = { meta = {
description = "A fast line-oriented regex search tool, similar to ag and ack"; description = "Fast line-oriented regex search tool, similar to ag and ack";
homepage = "https://github.com/BurntSushi/ripgrep"; homepage = "https://github.com/BurntSushi/ripgrep";
license = with lib.licenses; [ mit unlicense ]; license = with lib.licenses; [ mit unlicense ];
maintainers = with lib.maintainers; []; maintainers = with lib.maintainers; [];

View File

@ -183,7 +183,7 @@ let
''; '';
meta = { meta = {
description = "A LaTeX2e class for overhead transparencies"; description = "LaTeX2e class for overhead transparencies";
license = lib.licenses.unfreeRedistributable; license = lib.licenses.unfreeRedistributable;
maintainers = with lib.maintainers; [ veprbl ]; maintainers = with lib.maintainers; [ veprbl ];
platforms = lib.platforms.all; platforms = lib.platforms.all;

View File

@ -5,7 +5,7 @@ Nix packages can declare *meta-attributes* that contain information about a pack
```nix ```nix
{ {
meta = { meta = {
description = "A program that produces a familiar, friendly greeting"; description = "Program that produces a familiar, friendly greeting";
longDescription = '' longDescription = ''
GNU Hello is a program that prints "Hello, world!" when you run it. GNU Hello is a program that prints "Hello, world!" when you run it.
It is fully customizable. It is fully customizable.