Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

39 lines
879 B
Nix

{
alejandra,
jq,
lib,
moreutils,
vscode-utils,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "alejandra";
publisher = "kamadorueda";
version = "1.0.0";
hash = "sha256-COlEjKhm8tK5XfOjrpVUDQ7x3JaOLiYoZ4MdwTL8ktk=";
};
nativeBuildInputs = [
jq
moreutils
];
postInstall = ''
cd "$out/$installPrefix"
jq -e '
.contributes.configuration.properties."alejandra.program".default =
"${alejandra}/bin/alejandra" |
.contributes.configurationDefaults."alejandra.program" =
"${alejandra}/bin/alejandra"
' \
< package.json \
| sponge package.json
'';
meta = {
description = "Uncompromising Nix Code Formatter";
homepage = "https://github.com/kamadorueda/alejandra";
license = lib.licenses.unlicense;
maintainers = [ lib.maintainers.kamadorueda ];
};
}