nodePackages: remove unused packages (#489930)

This commit is contained in:
Martin Weinelt
2026-02-12 22:32:42 +00:00
committed by GitHub
8 changed files with 10 additions and 13084 deletions
+1 -2
View File
@@ -61,8 +61,7 @@ To add a package from npm to Nixpkgs:
```
If the package doesn't build, you may need to add an override as explained above.
4. If the package's name doesn't match any of the executables it provides, add an entry in [pkgs/development/node-packages/main-programs.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/node-packages/main-programs.nix). This will be the case for all scoped packages, e.g., `@angular/cli`.
5. Add and commit all modified and generated files.
4. Add and commit all modified and generated files.
For more information about the generation process, consult the [README.md](https://github.com/svanderburg/node2nix) file of the `node2nix` tool.
@@ -33,6 +33,7 @@ let
in
mapAliases {
"@angular/cli" = throw "@angular/cli was removed because it was unmaintainable in nixpkgs"; # Added 2026-02-12
"@antfu/ni" = pkgs.ni; # Added 2025-11-08
"@antora/cli" = pkgs.antora; # Added 2023-05-06
"@astrojs/language-server" = pkgs.astro-language-server; # Added 2024-02-12
@@ -51,6 +52,8 @@ mapAliases {
"@maizzle/cli" = pkgs.maizzle; # added 2023-08-17
"@medable/mdctl-cli" = throw "@medable/mdctl-cli was removed because it was broken"; # added 2023-08-21
"@mermaid-js/mermaid-cli" = pkgs.mermaid-cli; # added 2023-10-01
"@microsoft/rush" =
throw "@microsoft/rush has been removed because it was unmaintainable within nixpkgs"; # Added 2026-02-12
"@nerdwallet/shepherd" = pkgs.shepherd; # added 2023-09-30
"@nestjs/cli" = pkgs.nest-cli; # Added 2023-05-06
"@prisma/language-server" = throw "@prisma/language-server has been removed because it was broken"; # added 2025-03-23
@@ -68,6 +71,7 @@ mapAliases {
"@withgraphite/graphite-cli" = pkgs.graphite-cli; # added 2024-01-25
"@yaegassy/coc-nginx" = pkgs.coc-nginx; # Added 2025-11-08
"@zwave-js/server" = pkgs.zwave-js-server; # Added 2023-09-09
alex = throw "'alex' has been removed because it was unmaintainable in nixpkgs"; # Added 2026-02-12
audiosprite = throw "'audiosprite' has been removed because it was abandoned upstream"; # Added 2025-11-14
inherit (pkgs) autoprefixer; # added 2024-06-25
inherit (pkgs) asar; # added 2023-08-26
@@ -158,6 +162,7 @@ mapAliases {
inherit (pkgs) diff2html-cli; # Added 2025-11-08
inherit (pkgs) dockerfile-language-server-nodejs; # added 2023-08-18
inherit (pkgs) dotenv-cli; # added 2024-06-26
dotenv-vault = throw "'dotenv-vault' has been removed because it was unmaintained in nixpkgs"; # Added 2026-02-12
eask = pkgs.eask; # added 2023-08-17
elasticdump = throw "'elasticdump' has been removed because it was unmaintained in nixpkgs"; # Added 2025-12-26
inherit (pkgs.elmPackages) elm-test;
@@ -169,6 +174,7 @@ mapAliases {
inherit (pkgs) eslint; # Added 2024-08-28
inherit (pkgs) eslint_d; # Added 2023-05-26
inherit (pkgs) eas-cli; # added 2025-01-08
esy = throw "esy was removed because it was unmaintained within nixpkgs"; # Added 2026-02-12
expo-cli = throw "expo-cli was removed because it was deprecated upstream. Use `npx expo` or eas-cli instead."; # added 2024-12-02
fast-cli = throw "'fast-cli' has been removed because it was unmaintainable in nixpkgs"; # Added 2025-11-17
inherit (pkgs) fauna-shell; # Added 2025-11-27
@@ -197,6 +203,7 @@ mapAliases {
inherit (pkgs) grunt-cli; # added 2025-12-29
gtop = pkgs.gtop; # added 2023-07-31
gulp = self.gulp-cli; # Added 2025-11-04
gulp-cli = throw "gulp-cli has been removed because it was unmaintained in nixpkgs"; # Added 2026-02-12
he = throw "'he' has been removed because it was unmaintained upstream"; # Added 2025-11-14
hs-airdrop = throw "'hs-airdrop' has been removed because it was unmaintained upstream"; # Added 2025-11-14
hs-client = pkgs.hsd; # added 2023-08-20
@@ -217,6 +224,7 @@ mapAliases {
inherit (pkgs) jake; # added 2023-08-19
inherit (pkgs) javascript-typescript-langserver; # added 2023-08-19
inherit (pkgs) js-beautify; # Added 2025-11-06
js-yaml = throw "js-yaml was removed because it was unmaintained in nixpkgs"; # Added 2026-02-12
inherit (pkgs) jsdoc; # Added 2025-11-29
inherit (pkgs) jshint; # Added 2025-11-06
json = throw "'json' has been removed because it was unmaintained upstream"; # Added 2025-11-14
@@ -407,6 +415,7 @@ mapAliases {
inherit (pkgs) uppy-companion; # Added 2025-11-01
inherit (pkgs) vega-cli; # Added 2025-12-18
inherit (pkgs) vega-lite; # Added 2025-11-04
vercel = throw "vercel has been removed because it was unmaintained in nixpkgs"; # Added 2026-02-12
inherit (pkgs) vim-language-server; # added 2024-06-25
vls = throw "vls has been deprecated by upstream as vetur is also deprecated. Upstream suggests migrating to Volar for Vue LSP tooling instead."; # added 2024-12-09
inherit (pkgs) vsc-leetcode-cli; # Added 2023-08-30
@@ -11,7 +11,6 @@ let
composeManyExtensions
extends
makeExtensible
mapAttrs
;
nodePackages =
@@ -21,23 +20,11 @@ let
inherit (stdenv.hostPlatform) system;
};
mainProgramOverrides =
final: prev:
mapAttrs (
pkgName: mainProgram:
prev.${pkgName}.override (oldAttrs: {
meta = oldAttrs.meta // {
inherit mainProgram;
};
})
) (import ./main-programs.nix);
aliases =
final: prev: lib.optionalAttrs config.allowAliases (import ./aliases.nix pkgs lib final prev);
extensions = composeManyExtensions [
aliases
mainProgramOverrides
(import ./overrides.nix { inherit pkgs nodejs; })
];
in
@@ -1,9 +0,0 @@
# Use this file to add `meta.mainProgram` to packages in `nodePackages`.
{
# Packages that provide multiple executables where one is clearly the `mainProgram`.
"@microsoft/rush" = "rush";
# Packages that provide a single executable.
"@angular/cli" = "ng";
gulp-cli = "gulp";
}
@@ -1,20 +1,12 @@
[
"@angular/cli"
, "@microsoft/rush"
, "@tailwindcss/aspect-ratio"
, "@tailwindcss/forms"
, "@tailwindcss/line-clamp"
, "@tailwindcss/typography"
, "alex"
, "browserify"
, "coc-go"
, "coc-tsserver"
, "dotenv-vault"
, "esy"
, "gulp-cli"
, "js-yaml"
, "node2nix"
, "sass"
, "semver"
, "vercel"
]
File diff suppressed because it is too large Load Diff
@@ -1,38 +1,16 @@
# Do not use overrides in this file to add `meta.mainProgram` to packages. Use `./main-programs.nix`
# instead.
{ pkgs, nodejs }:
let
inherit (pkgs)
stdenv
lib
callPackage
fetchFromGitHub
fetchurl
fetchpatch
nixosTests
;
since = version: lib.versionAtLeast nodejs.version version;
before = version: lib.versionOlder nodejs.version version;
in
final: prev: {
inherit nodejs;
"@angular/cli" = prev."@angular/cli".override {
prePatch = ''
export NG_CLI_ANALYTICS=false
'';
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
for shell in bash zsh; do
installShellCompletion --cmd ng \
--$shell <($out/bin/ng completion script)
done
'';
};
node2nix = prev.node2nix.override {
# Get latest commit for misc fixes
src = fetchFromGitHub {
@@ -75,8 +53,4 @@ final: prev: {
wrapProgram "$out/bin/node2nix" --prefix PATH : ${lib.makeBinPath [ pkgs.nix ]}
'';
};
rush = prev."@microsoft/rush".override {
name = "rush";
};
}
@@ -43,12 +43,6 @@ def remove(attr):
else:
sys.stdout.write(line)
with fileinput.input(os.path.join(os.path.dirname(__file__), 'main-programs.nix'), inplace=1) as main_programs:
safe_attr = re.escape(attr)
for line in main_programs:
if not re.fullmatch(rf' "?{safe_attr}"? = ".*";\n', line):
sys.stdout.write(line)
with fileinput.input(os.path.join(os.path.dirname(__file__), 'overrides.nix'), inplace=1) as overrides:
safe_attr = re.escape(attr)
in_attr = False