Skip to content

Commit

Permalink
fix: overriding extensions shadowed env extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Nov 7, 2023
1 parent 9f76229 commit 9a5b427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}) { };

vscodium = ({ environments ? [ "nix" ] }: callPackage ./packages/vscodium.nix {
extensions = (builtins.concatMap (env: (import ./devShells/${env}.nix { inherit pkgs; }).vscodium.extensions) environments);
envExtensions = (builtins.concatMap (env: (import ./devShells/${env}.nix { inherit pkgs; }).vscodium.extensions) environments);
}) { };
});
};
Expand Down
4 changes: 2 additions & 2 deletions packages/vscodium.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ extensions ? [ ], pkgs, ... }:
{ envExtensions ? [ ], extensions ? [ ], pkgs, ... }:

with pkgs; symlinkJoin {
name = "vscodium";
paths = [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = extensions;
vscodeExtensions = envExtensions ++ extensions;
})

# Fix for: https://discourse.nixos.org/t/interactive-bash-with-nix-develop-flake/15486
Expand Down

0 comments on commit 9a5b427

Please sign in to comment.