File tree Expand file tree Collapse file tree 2 files changed +38
-16
lines changed
pkgs/applications/editors/vscode/extensions Expand file tree Collapse file tree 2 files changed +38
-16
lines changed Original file line number Diff line number Diff line change @@ -1789,22 +1789,7 @@ let
17891789 } ;
17901790 } ;
17911791
1792- esbenp . prettier-vscode = buildVscodeMarketplaceExtension {
1793- mktplcRef = {
1794- name = "prettier-vscode" ;
1795- publisher = "esbenp" ;
1796- version = "11.0.0" ;
1797- hash = "sha256-pNjkJhof19cuK0PsXJ/Q/Zb2H7eoIkfXJMLZJ4lDn7k=" ;
1798- } ;
1799- meta = {
1800- changelog = "https://marketplace.visualstudio.com/items/esbenp.prettier-vscode/changelog" ;
1801- description = "Code formatter using prettier" ;
1802- downloadPage = "https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" ;
1803- homepage = "https://github.com/prettier/prettier-vscode" ;
1804- license = lib . licenses . mit ;
1805- maintainers = [ lib . maintainers . datafoo ] ;
1806- } ;
1807- } ;
1792+ esbenp . prettier-vscode = callPackage ./esbenp.prettier-vscode { } ;
18081793
18091794 ethansk . restore-terminals = buildVscodeMarketplaceExtension {
18101795 mktplcRef = {
Original file line number Diff line number Diff line change 1+ {
2+ jq ,
3+ lib ,
4+ moreutils ,
5+ vscode-utils ,
6+ nodePackages ,
7+ } :
8+
9+ vscode-utils . buildVscodeMarketplaceExtension {
10+ mktplcRef = {
11+ name = "prettier-vscode" ;
12+ publisher = "esbenp" ;
13+ version = "11.0.0" ;
14+ hash = "sha256-pNjkJhof19cuK0PsXJ/Q/Zb2H7eoIkfXJMLZJ4lDn7k=" ;
15+ } ;
16+
17+ nativeBuildInputs = [
18+ jq
19+ moreutils
20+ ] ;
21+
22+ buildInputs = [ nodePackages . prettier ] ;
23+
24+ postInstall = ''
25+ cd "$out/$installPrefix"
26+ jq '.contributes.configuration.properties."prettier.prettierPath".default = "${ nodePackages . prettier } /lib/node_modules/prettier"' package.json | sponge package.json
27+ '' ;
28+
29+ meta = {
30+ changelog = "https://marketplace.visualstudio.com/items/esbenp.prettier-vscode/changelog" ;
31+ description = "Code formatter using prettier" ;
32+ downloadPage = "https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" ;
33+ homepage = "https://github.com/prettier/prettier-vscode" ;
34+ license = lib . licenses . mit ;
35+ maintainers = [ lib . maintainers . datafoo ] ;
36+ } ;
37+ }
You can’t perform that action at this time.
0 commit comments