@@ -2,16 +2,16 @@
22
33buildGoModule rec {
44 pname = "dockle";
5− version = "0.3.1";
5+ version = "0.3.10";
66
77 src = fetchFromGitHub {
88 owner = "goodwithtech";
99 repo = pname;
1010 rev = "v${version}";
11− sha256 = "sha256-Zc2ZlyeWdRvyuJLDDTONfh0/q+HKR4lNtSFMjgJWrRY=";
11+ sha256 = "sha256-oS3ZGQkDSRdVLluLNg56VGp6MCrRDlgjk1va1+xocas=";
1212 };
1313
14− vendorSha256 = "sha256-4IJKXcnMXBqoEjsV4Xg2QYvKwxDDUjcZtrj9IRuT6i4=";
14+ vendorSha256 = "sha256-npbUE3ch8TamW0aikdKuFElE4YDRKwNVUscuvmlQxl4=";
1515
1616 nativeBuildInputs = [ pkg-config ];
1717 buildInputs = [ btrfs-progs lvm2 ];
@@ -25,7 +25,15 @@ buildGoModule rec {
2525
2626 preCheck = ''
2727 # Remove tests that use networking
28− rm pkg/scanner/scan_test.go pkg/utils/fetch_test.go
28+ rm pkg/scanner/scan_test.go
29+ '';
30+
31+ doInstallCheck = true;
32+ installCheckPhase = ''
33+ runHook preInstallCheck
34+ $out/bin/dockle --help
35+ $out/bin/dockle --version | grep "dockle version ${version}"
36+ runHook postInstallCheck
2937 '';
3038
3139 meta = with lib; {