nodePackages.snyk: use buildNpmPackage

This commit is contained in:
Lord-Valen 2023-08-30 18:48:42 -04:00
parent b9f22e151b
commit 23e46addb3
No known key found for this signature in database
GPG Key ID: AB585519BBA4A26F
5 changed files with 29 additions and 57 deletions

View File

@ -85,6 +85,7 @@ mapAliases {
readability-cli = pkgs.readability-cli; # Added 2023-06-12
reveal-md = pkgs.reveal-md; # added 2023-07-31
s3http = throw "s3http was removed because it was abandoned upstream"; # added 2023-08-18
inherit (pkgs) snyk; # Added 2023-08-30
ssb-server = throw "ssb-server was removed because it was broken"; # added 2023-08-21
stf = throw "stf was removed because it was broken"; # added 2023-08-21
thelounge = pkgs.thelounge; # Added 2023-05-22

View File

@ -251,7 +251,6 @@
, "shout"
, "sloc"
, "smartdc"
, "snyk"
, "socket.io"
, "speed-test"
, "sql-formatter"

View File

@ -110683,62 +110683,6 @@ in
bypassCache = true;
reconstructLock = true;
};
snyk = nodeEnv.buildNodePackage {
name = "snyk";
packageName = "snyk";
version = "1.1205.0";
src = fetchurl {
url = "https://registry.npmjs.org/snyk/-/snyk-1.1205.0.tgz";
sha512 = "pYnSzBQXZPtPjHZ/VWmu6/dGj0yae6wKddarAZdeCIWnm8RSJ194mormeccprZ6IK8RwAxApZcL2hET5mDjxnA==";
};
dependencies = [
sources."@sentry-internal/tracing-7.64.0"
sources."@sentry/core-7.64.0"
sources."@sentry/node-7.64.0"
sources."@sentry/types-7.64.0"
sources."@sentry/utils-7.64.0"
sources."agent-base-6.0.2"
sources."boolean-3.2.0"
sources."cookie-0.4.2"
sources."debug-4.3.4"
sources."define-properties-1.2.0"
sources."detect-node-2.1.0"
sources."es6-error-4.1.1"
sources."escape-string-regexp-4.0.0"
sources."function-bind-1.1.1"
sources."get-intrinsic-1.2.1"
sources."global-agent-3.0.0"
sources."globalthis-1.0.3"
sources."has-1.0.3"
sources."has-property-descriptors-1.0.0"
sources."has-proto-1.0.1"
sources."has-symbols-1.0.3"
sources."https-proxy-agent-5.0.1"
sources."json-stringify-safe-5.0.1"
sources."lru-cache-6.0.0"
sources."lru_map-0.3.3"
sources."matcher-3.0.0"
sources."ms-2.1.2"
sources."object-keys-1.1.1"
sources."roarr-2.15.4"
sources."semver-7.5.4"
sources."semver-compare-1.0.0"
sources."serialize-error-7.0.1"
sources."sprintf-js-1.1.2"
sources."tslib-2.6.2"
sources."type-fest-0.13.1"
sources."yallist-4.0.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "snyk library and cli utility";
homepage = "https://github.com/snyk/snyk#readme";
license = "Apache-2.0";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
"socket.io" = nodeEnv.buildNodePackage {
name = "socket.io";
packageName = "socket.io";

View File

@ -0,0 +1,26 @@
{ buildNpmPackage, fetchFromGitHub, nodePackages, python3, lib }:
buildNpmPackage rec {
pname = "snyk";
version = "1.1207.0";
src = fetchFromGitHub {
owner = "snyk";
repo = "cli";
rev = "v${version}";
hash = "sha256-wEXE+dcAfBK7fuoB23RdPSbJCaovB5sXrFO0QGyf+aw=";
};
npmDepsHash = "sha256-j3lMQh8++pb/00d9H2v7QBkpxIJdsuRQoFkNiQbvnF4=";
nativeBuildInputs = [ nodePackages.node-gyp python3 ];
npmBuildScript = "build:prod";
meta = with lib; {
description = "Scans and monitors projects for security vulnerabilities";
homepage = "https://snyk.io";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}

View File

@ -20203,6 +20203,8 @@ with pkgs;
snore = callPackage ../tools/misc/snore { };
snyk = callPackage ../development/tools/analysis/snyk { };
snzip = callPackage ../tools/archivers/snzip { };
snowman = qt5.callPackage ../development/tools/analysis/snowman { };