mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
vscode-extensions.kamadorueda.alejandra: move to a directory
This commit is contained in:
parent
3ac536f66b
commit
e62a408834
@ -14,7 +14,6 @@
|
||||
, jq
|
||||
, shellcheck
|
||||
, moreutils
|
||||
, alejandra
|
||||
, shfmt
|
||||
, typst-lsp
|
||||
, typst-preview
|
||||
@ -2428,33 +2427,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
kamadorueda.alejandra = 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 = "The Uncompromising Nix Code Formatter";
|
||||
homepage = "https://github.com/kamadorueda/alejandra";
|
||||
license = lib.licenses.unlicense;
|
||||
maintainers = [ lib.maintainers.kamadorueda ];
|
||||
};
|
||||
};
|
||||
kamadorueda.alejandra = callPackage ./kamadorueda.alejandra { };
|
||||
|
||||
kamikillerto.vscode-colorize = buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
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 = "The Uncompromising Nix Code Formatter";
|
||||
homepage = "https://github.com/kamadorueda/alejandra";
|
||||
license = lib.licenses.unlicense;
|
||||
maintainers = [ lib.maintainers.kamadorueda ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user