vscode-extensions.b4dm4n.vscode-nixpkgs-fmt: move to a directory

This commit is contained in:
superherointj 2024-04-11 10:03:54 -03:00
parent 024fe44e72
commit 3e4358290c
2 changed files with 28 additions and 17 deletions

View File

@ -0,0 +1,27 @@
{
vscode-utils,
jq,
lib,
moreutils,
nixpkgs-fmt,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "nixpkgs-fmt";
publisher = "B4dM4n";
version = "0.0.1";
hash = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8=";
};
nativeBuildInputs = [
jq
moreutils
];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json | sponge package.json
'';
meta = {
license = lib.licenses.mit;
};
}

View File

@ -9,7 +9,6 @@
, jdk
, llvmPackages
, llvmPackages_14
, nixpkgs-fmt
, protobuf
, jq
, shellcheck
@ -422,22 +421,7 @@ let
azdavis.millet = callPackage ./azdavis.millet { };
b4dm4n.vscode-nixpkgs-fmt = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "nixpkgs-fmt";
publisher = "B4dM4n";
version = "0.0.1";
hash = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8=";
};
nativeBuildInputs = [ jq moreutils ];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json | sponge package.json
'';
meta = {
license = lib.licenses.mit;
};
};
b4dm4n.vscode-nixpkgs-fmt = callPackage ./b4dm4n.vscode-nixpkgs-fmt { };
baccata.scaladex-search = buildVscodeMarketplaceExtension {
mktplcRef = {