1 { lib, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, lvm2 }:
7 src = fetchFromGitHub {
8 owner = "goodwithtech";
11 hash = "sha256-ZAk51juPFSaDQYfzsf7HXigL4aIk8V+tGA9lZqHBOsY=";
14 vendorHash = "sha256-+AtvnplvPWkUwmxfB7rjYcLTQibQsObFT1QRR0FXAe0=";
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ btrfs-progs lvm2 ];
22 "-X github.com/goodwithtech/dockle/pkg.version=${version}"
26 # Remove tests that use networking
27 rm pkg/scanner/scan_test.go
30 doInstallCheck = true;
31 installCheckPhase = ''
32 runHook preInstallCheck
33 $out/bin/dockle --help
34 $out/bin/dockle --version | grep "dockle version ${version}"
35 runHook postInstallCheck
39 homepage = "https://containers.goodwith.tech";
40 changelog = "https://github.com/goodwithtech/dockle/releases/tag/v${version}";
41 description = "Container Image Linter for Security";
42 mainProgram = "dockle";
44 Container Image Linter for Security.
45 Helping build the Best-Practice Docker Image.
48 license = licenses.asl20;
49 maintainers = with maintainers; [ jk ];