37 lines
816 B
Nix
37 lines
816 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
clojure-lsp,
|
||
|
|
jq,
|
||
|
|
moreutils,
|
||
|
|
vscode-utils,
|
||
|
|
vscode-extension-update-script,
|
||
|
|
}:
|
||
|
|
|
||
|
|
vscode-utils.buildVscodeMarketplaceExtension {
|
||
|
|
mktplcRef = {
|
||
|
|
name = "calva";
|
||
|
|
publisher = "betterthantomorrow";
|
||
|
|
version = "2.0.536";
|
||
|
|
hash = "sha256-Q6T8Ab8kwOjdFM63SjTNEOgd+a6fL1PRGRredHzwg7U=";
|
||
|
|
};
|
||
|
|
|
||
|
|
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
|
||
|
|
'';
|
||
|
|
|
||
|
|
passthru.updateScript = vscode-extension-update-script {
|
||
|
|
extraArgs = [
|
||
|
|
"--override-filename"
|
||
|
|
"pkgs/applications/editors/vscode/extensions/betterthantomorrow.calva/default.nix"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
|
||
|
|
meta.license = lib.licenses.mit;
|
||
|
|
}
|