nodePackages.npm: drop

This commit is contained in:
Robert Schütz 2024-10-04 15:30:52 -07:00
parent e587ef535d
commit 506df4e38e
5 changed files with 3 additions and 21 deletions

View File

@ -118,7 +118,7 @@ in
environment = {
HOME = cfg.userDir;
};
path = lib.optionals cfg.withNpmAndGcc [ pkgs.nodePackages.npm pkgs.gcc ];
path = lib.optionals cfg.withNpmAndGcc [ pkgs.nodejs pkgs.gcc ];
serviceConfig = mkMerge [
{
User = cfg.user;

View File

@ -135,6 +135,7 @@ mapAliases {
inherit (pkgs) node-gyp; # added 2024-08-13
inherit (pkgs) node-pre-gyp; # added 2024-08-05
inherit (pkgs) nodemon; # added 2024-06-28
npm = pkgs.nodejs.overrideAttrs (old: { meta = old.meta // { mainProgram = "npm"; }; }); # added 2024-10-04
inherit (pkgs) npm-check-updates; # added 2023-08-22
ocaml-language-server = throw "ocaml-language-server was removed because it was abandoned upstream"; # added 2023-09-04
parcel-bundler = self.parcel; # added 2023-09-04

View File

@ -148,7 +148,6 @@
, "node-red"
, "node2nix"
, "np"
, "npm"
, "npm-merge-driver"
, "nrm"
, "orval"

View File

@ -76695,24 +76695,6 @@ in
bypassCache = true;
reconstructLock = true;
};
npm = nodeEnv.buildNodePackage {
name = "npm";
packageName = "npm";
version = "10.8.3";
src = fetchurl {
url = "https://registry.npmjs.org/npm/-/npm-10.8.3.tgz";
sha512 = "0IQlyAYvVtQ7uOhDFYZCGK8kkut2nh8cpAdA9E6FvRSJaTgtZRZgNjlC5ZCct//L73ygrpY93CxXpRJDtNqPVg==";
};
buildInputs = globalBuildInputs;
meta = {
description = "a package manager for JavaScript";
homepage = "https://docs.npmjs.com/";
license = "Artistic-2.0";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
npm-merge-driver = nodeEnv.buildNodePackage {
name = "npm-merge-driver";
packageName = "npm-merge-driver";

View File

@ -1,5 +1,5 @@
#! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl nix jq nodePackages.npm
#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl nix jq nodejs
set -euo pipefail
DRV_DIR="$(dirname "${BASH_SOURCE[0]}")"