vscode-extensions: fix aliases
This commit is contained in:
parent
83b309f657
commit
bd11afec4f
1 changed files with 15 additions and 7 deletions
|
@ -10,7 +10,7 @@ let
|
|||
# So an extension's attribute name should be of the form:
|
||||
# "${mktplcRef.publisher}.${mktplcRef.name}".
|
||||
#
|
||||
self = stdenv.lib.mapAttrs (_n: stdenv.lib.recurseIntoAttrs)
|
||||
baseExtensions = self: stdenv.lib.mapAttrs (_n: stdenv.lib.recurseIntoAttrs)
|
||||
{
|
||||
|
||||
alanz.vscode-hie-server = buildVscodeMarketplaceExtension {
|
||||
|
@ -245,11 +245,19 @@ let
|
|||
llvm-org.lldb-vscode = llvmPackages_8.lldb;
|
||||
|
||||
WakaTime.vscode-wakatime = callPackage ./wakatime {};
|
||||
} // lib.optionalAttrs (config.allowAliases or true) (
|
||||
with self; {
|
||||
};
|
||||
|
||||
aliases = self: super: {
|
||||
# aliases
|
||||
ms-vscode.Go = golang.Go;
|
||||
}
|
||||
);
|
||||
ms-vscode = lib.recursiveUpdate super.ms-vscode { inherit (super.golang) Go; };
|
||||
};
|
||||
|
||||
# TODO: add overrides overlay, so that we can have a generated.nix
|
||||
# then apply extension specific modifcations to packages.
|
||||
|
||||
# overlays will be applied left to right, overrides should come after aliases.
|
||||
overlays = lib.optionals (config.allowAliases or true) [ aliases ];
|
||||
|
||||
toFix = lib.foldl' (lib.flip lib.extends) baseExtensions overlays;
|
||||
in
|
||||
self
|
||||
lib.fix toFix
|
||||
|
|
Loading…
Reference in a new issue