Skip to content

Commit

Permalink
feat(flake): support removing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Aug 24, 2024
1 parent 2ca2644 commit 048cb17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@
# platform-specific extensions will overwrite universal extensions
# due to the sorting order of platforms in the Haskell script
(builtins.mapAttrs (_: builtins.foldl' (k: { name, value }: k // { ${name} = value; }) { }))
(
x:
builtins.foldl'
(acc: y: acc // { "${y.publisher}" = builtins.removeAttrs acc."${y.publisher}" y.extensions; })
x
(
pkgs.lib.attrsets.mapAttrsToList (publisher: extensions: {
inherit publisher extensions;
}) (import ./removed.nix)
)
)
];
mkSet =
attrs@{
Expand Down
4 changes: 4 additions & 0 deletions removed.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
# https://github.com/nix-community/nix-vscode-extensions/issues/69
"ms-vscode" = [ "cpptools" ];
}

0 comments on commit 048cb17

Please sign in to comment.