@@ -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+}