File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 7
7
let
8
8
inherit ( pkgs ) lib ;
9
9
10
- buildVscodeMarketplaceExtension = lib . customisation . makeOverridable pkgs . vscode-utils . buildVscodeMarketplaceExtension ;
11
- buildVscodeExtension = lib . customisation . makeOverridable pkgs . vscode-utils . buildVscodeExtension ;
10
+ makeOverridable =
11
+ f : args :
12
+ lib . customisation . makeOverridable f (
13
+ if builtins . isFunction args then
14
+ (
15
+ let
16
+ x = args ( f x ) ;
17
+ in
18
+ x
19
+ )
20
+ else
21
+ args
22
+ ) ;
23
+
24
+ buildVscodeMarketplaceExtension = makeOverridable pkgs . vscode-utils . buildVscodeMarketplaceExtension ;
25
+
26
+ buildVscodeExtension = makeOverridable pkgs . vscode-utils . buildVscodeExtension ;
12
27
13
28
# We don't modify callPackage because extensions
14
29
# may use its original version
You can’t perform that action at this time.
0 commit comments