lol

ms-toolsai.jupyter: 2021.5.745244803 -> 2021.9.1101343141 (#141772)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

Raymond Gauthier
Sandro
and committed by
GitHub
4937a5f3 7a135abf

+43 -11
+1 -11
pkgs/misc/vscode-extensions/default.nix
··· 1176 1176 }; 1177 1177 }; 1178 1178 1179 - ms-toolsai.jupyter = buildVscodeMarketplaceExtension { 1180 - mktplcRef = { 1181 - name = "jupyter"; 1182 - publisher = "ms-toolsai"; 1183 - version = "2021.5.745244803"; 1184 - sha256 = "0gjpsp61l8daqa87mpmxcrvsvb0pc2vwg7xbkvwn0f13c1739w9p"; 1185 - }; 1186 - meta = { 1187 - license = lib.licenses.unfree; 1188 - }; 1189 - }; 1179 + ms-toolsai.jupyter = callPackage ./ms-toolsai-jupyter {}; 1190 1180 1191 1181 mvllow.rose-pine = buildVscodeMarketplaceExtension { 1192 1182 mktplcRef = {
+42
pkgs/misc/vscode-extensions/ms-toolsai-jupyter/default.nix
··· 1 + { lib, vscode-utils, jq, moreutils }: 2 + 3 + let 4 + inherit (vscode-utils) buildVscodeMarketplaceExtension; 5 + 6 + in buildVscodeMarketplaceExtension { 7 + mktplcRef = { 8 + name = "jupyter"; 9 + publisher = "ms-toolsai"; 10 + version = "2021.9.1101343141"; 11 + sha256 = "1c5dgkk5yn6a8k3blbqakqdy8ppwgfbm0ciki7ix696bvlksbpdg"; 12 + }; 13 + 14 + nativeBuildInputs = [ 15 + jq 16 + moreutils 17 + ]; 18 + 19 + postPatch = '' 20 + # Patch 'packages.json' so that the expected '__metadata' field exists. 21 + # This works around observed extension load failure on vscode's attempt 22 + # to rewrite 'packages.json' with this new information. 23 + print_jq_query() { 24 + cat <<"EOF" 25 + .__metadata = { 26 + "id": "6c2f1801-1e7f-45b2-9b5c-7782f1e076e8", 27 + "publisherId": "ac8eb7c9-3e59-4b39-8040-f0484d8170ce", 28 + "publisherDisplayName": "Microsoft", 29 + "installedTimestamp": 0 30 + } 31 + EOF 32 + } 33 + jq "$(print_jq_query)" ./package.json | sponge ./package.json 34 + ''; 35 + 36 + meta = with lib; { 37 + description = "Jupyter extension for vscode"; 38 + homepage = "https://github.com/microsoft/vscode-jupyter"; 39 + license = licenses.mit; 40 + maintainers = with maintainers; [ jraygauthier ]; 41 + }; 42 + }