diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-27 09:32:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 09:32:18 +0100 |
commit | 4409f04b235f02e80efbc5913d72b3438e14ec08 (patch) | |
tree | 6e3df90db30c968ba2bf75cba85643cbd2547ac6 /pkgs/development/tools/analysis | |
parent | 9505dd8fc1fbb2521275773e68350df7f89ffb3b (diff) |
snyk: refactor
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r-- | pkgs/development/tools/analysis/snyk/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/tools/analysis/snyk/default.nix b/pkgs/development/tools/analysis/snyk/default.nix index 9125d2a500a0b..11ee2297e61d3 100644 --- a/pkgs/development/tools/analysis/snyk/default.nix +++ b/pkgs/development/tools/analysis/snyk/default.nix @@ -1,4 +1,10 @@ -{ buildNpmPackage, fetchFromGitHub, lib, stdenv, testers, snyk }: +{ lib +, buildNpmPackage +, fetchFromGitHub +, stdenv +, testers +, snyk +}: buildNpmPackage rec { pname = "snyk"; @@ -7,14 +13,15 @@ buildNpmPackage rec { src = fetchFromGitHub { owner = "snyk"; repo = "cli"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-tckifLV+HC7NqTeBtZI+VjZveeVbRS5+63vL8k8qE4s="; }; npmDepsHash = "sha256-deBtINc+P0NnCIb0jI0Mvn2zbWS6qLqCXL6nKSFGqOI="; postPatch = '' - substituteInPlace package.json --replace '"version": "1.0.0-monorepo"' '"version": "${version}"' + substituteInPlace package.json \ + --replace-fail '"version": "1.0.0-monorepo"' '"version": "${version}"' ''; env.NIX_CFLAGS_COMPILE = @@ -29,9 +36,10 @@ buildNpmPackage rec { meta = with lib; { description = "Scans and monitors projects for security vulnerabilities"; - mainProgram = "snyk"; homepage = "https://snyk.io"; + changelog = "https://github.com/snyk/cli/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ ]; + mainProgram = "snyk"; }; } |