Unverified Commit fff17d28 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

trufflehog: wrapProgram to ignore updater (#365996)

parents 536ef884 ee604a36
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  fetchFromGitHub,
  buildGoModule,
  versionCheckHook,
  makeWrapper,
}:

buildGoModule rec {
@@ -18,6 +19,8 @@ buildGoModule rec {

  vendorHash = "sha256-M8qasSqn0NdQOk7/Sq0NhK/YFMjJSrPRF61h5k3MPB0=";

  nativeBuildInputs = [ makeWrapper ];

  proxyVendor = true;

  nativeInstallCheckInputs = [ versionCheckHook ];
@@ -33,6 +36,8 @@ buildGoModule rec {

  postInstall = ''
    rm $out/bin/{generate,snifftest}

    wrapProgram $out/bin/trufflehog --add-flags --no-update
  '';

  doInstallCheck = true;
@@ -44,6 +49,9 @@ buildGoModule rec {
    homepage = "https://github.com/trufflesecurity/trufflehog";
    changelog = "https://github.com/trufflesecurity/trufflehog/releases/tag/v${version}";
    license = with licenses; [ agpl3Only ];
    maintainers = with maintainers; [ fab ];
    maintainers = with maintainers; [
      fab
      sarcasticadmin
    ];
  };
}