28 lines
585 B
Nix
28 lines
585 B
Nix
|
{
|
||
|
clojure-lsp,
|
||
|
jq,
|
||
|
lib,
|
||
|
moreutils,
|
||
|
vscode-utils,
|
||
|
}:
|
||
|
|
||
|
vscode-utils.buildVscodeMarketplaceExtension {
|
||
|
mktplcRef = {
|
||
|
name = "calva";
|
||
|
publisher = "betterthantomorrow";
|
||
|
version = "2.0.374";
|
||
|
hash = "sha256-VwdHOkduSSIrcOvrcVf7K8DSp3N1u9fvbaCVDCxp+bk=";
|
||
|
};
|
||
|
nativeBuildInputs = [
|
||
|
jq
|
||
|
moreutils
|
||
|
];
|
||
|
postInstall = ''
|
||
|
cd "$out/$installPrefix"
|
||
|
jq '.contributes.configuration[0].properties."calva.clojureLspPath".default = "${clojure-lsp}/bin/clojure-lsp"' package.json | sponge package.json
|
||
|
'';
|
||
|
meta = {
|
||
|
license = lib.licenses.mit;
|
||
|
};
|
||
|
}
|