1{
2 lib,
3 jq,
4 moreutils,
5 racket,
6 vscode-utils,
7}:
8
9vscode-utils.buildVscodeMarketplaceExtension {
10 mktplcRef = {
11 name = "magic-racket";
12 publisher = "evzen-wybitul";
13 version = "0.7.0";
14 hash = "sha256-8q2H9VPmdIAh4VmtGjIAwUfpr1P7+zmDLGiyCNbAXBU=";
15 };
16 nativeBuildInputs = [
17 jq
18 moreutils
19 ];
20 postInstall = ''
21 cd "$out/$installPrefix"
22 jq '.contributes.configuration.properties."magicRacket.general.racketPath".default = "${racket}/bin/racket"' package.json | sponge package.json
23 jq '.contributes.configuration.properties."magicRacket.general.racoPath".default = "${racket}/bin/raco"' package.json | sponge package.json
24 '';
25 meta = {
26 changelog = "https://marketplace.visualstudio.com/items/evzen-wybitul.magic-racket/changelog";
27 description = "Best coding experience for Racket in VS Code";
28 downloadPage = "https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket";
29 homepage = "https://github.com/Eugleo/magic-racket";
30 license = lib.licenses.agpl3Only;
31 };
32}