mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
Merge pull request #250077 from dotlambda/glob-buildNpmPackage
node-glob: use buildNpmPackage
This commit is contained in:
commit
a557591dcc
@ -4,6 +4,7 @@
|
||||
, fetchpatch
|
||||
, scfbuild
|
||||
, fontforge
|
||||
, node-glob
|
||||
, libuninameslist
|
||||
, nodejs
|
||||
, nodePackages
|
||||
@ -59,7 +60,7 @@ in stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [
|
||||
scfbuild-with-fontforge-20201107
|
||||
nodejs
|
||||
nodePackages.glob
|
||||
node-glob
|
||||
nodePackages.lodash
|
||||
];
|
||||
|
||||
|
@ -66,6 +66,7 @@ mapAliases {
|
||||
inherit (pkgs) firebase-tools; # added 2023-08-18
|
||||
flood = pkgs.flood; # Added 2023-07-25
|
||||
git-ssb = throw "git-ssb was removed because it was broken"; # added 2023-08-21
|
||||
glob = pkgs.node-glob; # added 2023-08-18
|
||||
inherit (pkgs) graphqurl; # added 2023-08-19
|
||||
gtop = pkgs.gtop; # added 2023-07-31
|
||||
inherit (pkgs) html-minifier; # added 2023-08-19
|
||||
|
@ -133,7 +133,6 @@
|
||||
, "git-standup"
|
||||
, "@gitbeaker/cli"
|
||||
, "gitmoji-cli"
|
||||
, "glob"
|
||||
, "gramma"
|
||||
, "grammarly-languageserver"
|
||||
, "graphql"
|
||||
|
65
pkgs/development/node-packages/node-packages.nix
generated
65
pkgs/development/node-packages/node-packages.nix
generated
@ -88688,71 +88688,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
glob = nodeEnv.buildNodePackage {
|
||||
name = "glob";
|
||||
packageName = "glob";
|
||||
version = "10.3.3";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/glob/-/glob-10.3.3.tgz";
|
||||
sha512 = "92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."@isaacs/cliui-8.0.2"
|
||||
sources."ansi-regex-5.0.1"
|
||||
sources."ansi-styles-6.2.1"
|
||||
sources."balanced-match-1.0.2"
|
||||
sources."brace-expansion-2.0.1"
|
||||
sources."color-convert-2.0.1"
|
||||
sources."color-name-1.1.4"
|
||||
sources."cross-spawn-7.0.3"
|
||||
sources."eastasianwidth-0.2.0"
|
||||
sources."emoji-regex-9.2.2"
|
||||
sources."foreground-child-3.1.1"
|
||||
sources."is-fullwidth-code-point-3.0.0"
|
||||
sources."isexe-2.0.0"
|
||||
sources."jackspeak-2.3.0"
|
||||
sources."lru-cache-10.0.1"
|
||||
sources."minimatch-9.0.3"
|
||||
sources."minipass-7.0.3"
|
||||
sources."path-key-3.1.1"
|
||||
sources."path-scurry-1.10.1"
|
||||
sources."shebang-command-2.0.0"
|
||||
sources."shebang-regex-3.0.0"
|
||||
sources."signal-exit-4.1.0"
|
||||
sources."string-width-5.1.2"
|
||||
(sources."string-width-cjs-4.2.3" // {
|
||||
dependencies = [
|
||||
sources."emoji-regex-8.0.0"
|
||||
sources."strip-ansi-6.0.1"
|
||||
];
|
||||
})
|
||||
(sources."strip-ansi-7.1.0" // {
|
||||
dependencies = [
|
||||
sources."ansi-regex-6.0.1"
|
||||
];
|
||||
})
|
||||
sources."strip-ansi-cjs-6.0.1"
|
||||
sources."which-2.0.2"
|
||||
sources."wrap-ansi-8.1.0"
|
||||
(sources."wrap-ansi-cjs-7.0.0" // {
|
||||
dependencies = [
|
||||
sources."ansi-styles-4.3.0"
|
||||
sources."emoji-regex-8.0.0"
|
||||
sources."string-width-4.2.3"
|
||||
sources."strip-ansi-6.0.1"
|
||||
];
|
||||
})
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "the most correct and second fastest glob implementation in JavaScript";
|
||||
homepage = "https://github.com/isaacs/node-glob#readme";
|
||||
license = "ISC";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
gramma = nodeEnv.buildNodePackage {
|
||||
name = "gramma";
|
||||
packageName = "gramma";
|
||||
|
29
pkgs/tools/misc/node-glob/default.nix
Normal file
29
pkgs/tools/misc/node-glob/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "glob";
|
||||
version = "10.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "isaacs";
|
||||
repo = "node-glob";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-oLlNhQOnu/hlKjNWa5vjqslz1EarZJOpUEXUB+vGQvc=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-78oODw+CBCk5JRJbDqLqVmzTVImP7Z7o6jRIimDxZDQ=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/isaacs/node-glob/blob/${src.rev}/changelog.md";
|
||||
description = "A little globber for Node.js";
|
||||
homepage = "https://github.com/isaacs/node-glob";
|
||||
license = lib.licenses.isc;
|
||||
mainProgram = "glob";
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
@ -1903,6 +1903,8 @@ with pkgs;
|
||||
systemd = pkgs.systemd;
|
||||
};
|
||||
|
||||
node-glob = callPackage ../tools/misc/node-glob { };
|
||||
|
||||
nominatim = callPackage ../servers/nominatim { };
|
||||
|
||||
npm-check-updates = callPackage ../tools/package-management/npm-check-updates { };
|
||||
|
Loading…
Reference in New Issue
Block a user