git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #108605 from fabaff/grype

grype: init at 0.6.1

commit4c87452cabff2baa6c4c13d63d6b6b7e5dc727a0 authorSandro <sandro.jaeckel@gmail.com> dateThu 7 Jan 2021, 11:47 (6 years ago) parentdb5a3ef0fcc27a
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
@@ -4576,6 +4576,8 @@ in
45764576
45774577 gssdp = callPackage ../development/libraries/gssdp { };
45784578
4579+ grype = callPackage ../tools/security/grype { };
4580+
45794581 gt5 = callPackage ../tools/system/gt5 { };
45804582
45814583 gtest = callPackage ../development/libraries/gtest { };