summary refs log tree commit diff
path: root/pkgs/tools/security/zlint
diff options
context:
space:
mode:
authorArthur Gautier <arthur.gautier@arista.com>2022-11-18 08:57:05 -0800
committerCole Helbling <cole.e.helbling@outlook.com>2022-11-23 10:46:47 -0800
commitf9cdaba46e67f71663fe03c4174cab9f7b03520b (patch)
tree9f10379a89b521e552f20c8908043b6b85c705cb /pkgs/tools/security/zlint
parent4415baddd8ead057344cf87898a6029b0ef27012 (diff)
part ways with leaveDotGit
Diffstat (limited to 'pkgs/tools/security/zlint')
-rw-r--r--pkgs/tools/security/zlint/default.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/pkgs/tools/security/zlint/default.nix b/pkgs/tools/security/zlint/default.nix
index 9d85b181a622d..cdc4bc36d748c 100644
--- a/pkgs/tools/security/zlint/default.nix
+++ b/pkgs/tools/security/zlint/default.nix
@@ -1,7 +1,6 @@
 { lib
 , buildGoModule
 , fetchFromGitHub
-, git
 , testers
 , zlint
 }:
@@ -14,8 +13,7 @@ buildGoModule rec {
     owner = "zmap";
     repo = "zlint";
     rev = "v${version}";
-    leaveDotGit = true;
-    hash = "sha256-1T8WAWsivSEB2xVEM+GpWJuD3DGXPa9uNpuN6/ABsns=";
+    hash = "sha256-l39GdfEKUAw5DQNjx6ZBgfGtengRlUUasm0G07kAA2A=";
   };
 
   modRoot = "v3";
@@ -38,12 +36,8 @@ buildGoModule rec {
     "-X main.version=${version}"
   ];
 
-  checkInputs = [ git ];
-
-  preCheck = ''
-    # Test all targets.
-    unset subPackages
-  '';
+  # Checks rely on .git directory, leaveDotGit makes the source derivation flaky.
+  doCheck = false;
 
   passthru.tests.version = testers.testVersion {
     package = zlint;