nodePackages.terser: use buildNpmPackage
This commit is contained in:
parent
37123711fc
commit
75c7894435
|
@ -110,6 +110,7 @@ mapAliases {
|
||||||
stf = throw "stf was removed because it was broken"; # added 2023-08-21
|
stf = throw "stf was removed because it was broken"; # added 2023-08-21
|
||||||
surge = pkgs.surge-cli; # Added 2023-09-08
|
surge = pkgs.surge-cli; # Added 2023-09-08
|
||||||
swagger = throw "swagger was removed because it was broken and abandoned upstream"; # added 2023-09-09
|
swagger = throw "swagger was removed because it was broken and abandoned upstream"; # added 2023-09-09
|
||||||
|
inherit (pkgs) terser; # Added 2023-08-31
|
||||||
thelounge = pkgs.thelounge; # Added 2023-05-22
|
thelounge = pkgs.thelounge; # Added 2023-05-22
|
||||||
three = throw "three was removed because it was no longer needed"; # Added 2023-09-08
|
three = throw "three was removed because it was no longer needed"; # Added 2023-09-08
|
||||||
inherit (pkgs) titanium; # added 2023-08-17
|
inherit (pkgs) titanium; # added 2023-08-17
|
||||||
|
|
|
@ -242,7 +242,6 @@
|
||||||
, {"tedicross": "git+https://github.com/TediCross/TediCross.git#v0.8.7"}
|
, {"tedicross": "git+https://github.com/TediCross/TediCross.git#v0.8.7"}
|
||||||
, "teck-programmer"
|
, "teck-programmer"
|
||||||
, "tern"
|
, "tern"
|
||||||
, "terser"
|
|
||||||
, "textlint"
|
, "textlint"
|
||||||
, "textlint-plugin-latex"
|
, "textlint-plugin-latex"
|
||||||
, "textlint-rule-abbr-within-parentheses"
|
, "textlint-rule-abbr-within-parentheses"
|
||||||
|
|
31
pkgs/development/node-packages/node-packages.nix
generated
31
pkgs/development/node-packages/node-packages.nix
generated
|
@ -106636,37 +106636,6 @@ in
|
||||||
bypassCache = true;
|
bypassCache = true;
|
||||||
reconstructLock = true;
|
reconstructLock = true;
|
||||||
};
|
};
|
||||||
terser = nodeEnv.buildNodePackage {
|
|
||||||
name = "terser";
|
|
||||||
packageName = "terser";
|
|
||||||
version = "5.19.2";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz";
|
|
||||||
sha512 = "qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==";
|
|
||||||
};
|
|
||||||
dependencies = [
|
|
||||||
sources."@jridgewell/gen-mapping-0.3.3"
|
|
||||||
sources."@jridgewell/resolve-uri-3.1.1"
|
|
||||||
sources."@jridgewell/set-array-1.1.2"
|
|
||||||
sources."@jridgewell/source-map-0.3.5"
|
|
||||||
sources."@jridgewell/sourcemap-codec-1.4.15"
|
|
||||||
sources."@jridgewell/trace-mapping-0.3.19"
|
|
||||||
sources."acorn-8.10.0"
|
|
||||||
sources."buffer-from-1.1.2"
|
|
||||||
sources."commander-2.20.3"
|
|
||||||
sources."source-map-0.6.1"
|
|
||||||
sources."source-map-support-0.5.21"
|
|
||||||
];
|
|
||||||
buildInputs = globalBuildInputs;
|
|
||||||
meta = {
|
|
||||||
description = "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+";
|
|
||||||
homepage = "https://terser.org";
|
|
||||||
license = "BSD-2-Clause";
|
|
||||||
};
|
|
||||||
production = true;
|
|
||||||
bypassCache = true;
|
|
||||||
reconstructLock = true;
|
|
||||||
};
|
|
||||||
textlint = nodeEnv.buildNodePackage {
|
textlint = nodeEnv.buildNodePackage {
|
||||||
name = "textlint";
|
name = "textlint";
|
||||||
packageName = "textlint";
|
packageName = "textlint";
|
||||||
|
|
22
pkgs/development/tools/misc/terser/default.nix
Normal file
22
pkgs/development/tools/misc/terser/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ buildNpmPackage, fetchFromGitHub, lib }:
|
||||||
|
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "terser";
|
||||||
|
version = "5.19.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "terser";
|
||||||
|
repo = "terser";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-ZI5ElHnQwoCJspGL/v0PqddMUAAhQGWDZA9utWZD/nM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-M7LGXoZFBQrXpkiofnam7tgFkk6+N7ckPxTcwAAuqxU=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "JavaScript parser, mangler and compressor toolkit for ES6+";
|
||||||
|
homepage = "https://terser.org";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ talyz ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -41,6 +41,7 @@
|
||||||
, dart-sass-embedded
|
, dart-sass-embedded
|
||||||
, jq
|
, jq
|
||||||
, moreutils
|
, moreutils
|
||||||
|
, terser
|
||||||
|
|
||||||
, plugins ? []
|
, plugins ? []
|
||||||
}@args:
|
}@args:
|
||||||
|
@ -223,7 +224,7 @@ let
|
||||||
postgresql
|
postgresql
|
||||||
redis
|
redis
|
||||||
nodePackages.uglify-js
|
nodePackages.uglify-js
|
||||||
nodePackages.terser
|
terser
|
||||||
nodePackages.patch-package
|
nodePackages.patch-package
|
||||||
yarn
|
yarn
|
||||||
nodejs_16
|
nodejs_16
|
||||||
|
|
|
@ -20430,6 +20430,8 @@ with pkgs;
|
||||||
|
|
||||||
terrascan = callPackage ../tools/security/terrascan { };
|
terrascan = callPackage ../tools/security/terrascan { };
|
||||||
|
|
||||||
|
terser = callPackage ../development/tools/misc/terser { };
|
||||||
|
|
||||||
tesh = callPackage ../tools/text/tesh {};
|
tesh = callPackage ../tools/text/tesh {};
|
||||||
|
|
||||||
texinfo413 = callPackage ../development/tools/misc/texinfo/4.13a.nix { };
|
texinfo413 = callPackage ../development/tools/misc/texinfo/4.13a.nix { };
|
||||||
|
|
Loading…
Reference in a new issue