git.iko.soy/typeable/nixpkgs
on master help sign in
grype: init at 0.6.1
commit0fcc27a6668728ee4d4986e77d1c74ee0ed2ba5e authorFabian Affolter <mail@fabian-affolter.ch> dateWed 6 Jan 2021, 19:11 (6 years ago) parent4746e17
2 files changed+37
pkgs/tools/security/grype/default.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/grype/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ buildGoModule
2+, docker
3+, fetchFromGitHub
4+, stdenv
5+}:
6+
7+buildGoModule rec {
8+ pname = "grype";
9+ version = "0.6.1";
10+
11+ src = fetchFromGitHub {
12+ owner = "anchore";
13+ repo = pname;
14+ rev = "v${version}";
15+ sha256 = "0schq11vckvdj538mnkdzhxl452nrssqrfapab9qc44yxdi1wf8k";
16+ };
17+
18+ vendorSha256 = "0lna7zhsj3wnw83nv0dp93aj869pplb51gqzrkka7vnqp0rjcw50";
19+
20+ propagatedBuildInputs = [ docker ];
21+
22+ # tests require a running Docker instance
23+ doCheck = false;
24+
25+ meta = with stdenv.lib; {
26+ description = "Vulnerability scanner for container images and filesystems";
27+ longDescription = ''
28+ As a vulnerability scanner is grype abale to scan the contents of a container
29+ image or filesystem to find known vulnerabilities.
30+ '';
31+ homepage = "https://github.com/anchore/grype";
32+ license = with licenses; [ asl20 ];
33+ maintainers = with maintainers; [ fab ];
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -4570,6 +4570,8 @@ in
45704570
45714571 gssdp = callPackage ../development/libraries/gssdp { };
45724572
4573+ grype = callPackage ../tools/security/grype { };
4574+
45734575 gt5 = callPackage ../tools/system/gt5 { };
45744576
45754577 gtest = callPackage ../development/libraries/gtest { };