Merge pull request #252455 from Lord-Valen/npm-snyk

nodePackages.snyk: use buildNpmPackage
This commit is contained in:
Matthieu Coudron 2023-09-02 15:11:01 +02:00 committed by GitHub
commit 3500c01704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 57 deletions

View file

@ -88,6 +88,7 @@ mapAliases {
reveal-md = pkgs.reveal-md; # added 2023-07-31 reveal-md = pkgs.reveal-md; # added 2023-07-31
inherit (pkgs) rtlcss; # added 2023-08-29 inherit (pkgs) rtlcss; # added 2023-08-29
s3http = throw "s3http was removed because it was abandoned upstream"; # added 2023-08-18 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 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 stf = throw "stf was removed because it was broken"; # added 2023-08-21
thelounge = pkgs.thelounge; # Added 2023-05-22 thelounge = pkgs.thelounge; # Added 2023-05-22

View file

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

View file

@ -110556,62 +110556,6 @@ in
bypassCache = true; bypassCache = true;
reconstructLock = 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 { "socket.io" = nodeEnv.buildNodePackage {
name = "socket.io"; name = "socket.io";
packageName = "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

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