Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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;
|
|
}
|