mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
3cec93f190
Diff: https://github.com/boostsecurityio/poutine/compare/refs/tags/v0.12.0...v0.13.0 Changelog: https://github.com/boostsecurityio/poutine/releases/tag/v0.13.0
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "poutine";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boostsecurityio";
|
|
repo = "poutine";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-9vbK2tc57e/YNfhSVbCMxnzOmmahr9T3x5Tt7GQjVnc=";
|
|
};
|
|
|
|
vendorHash = "sha256-HYuyGSatUOch73IKc7/9imhwz0Oz6Mrccs2HKVQtaVE=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd ${meta.mainProgram} \
|
|
--bash <($out/bin/${meta.mainProgram} completion bash) \
|
|
--fish <($out/bin/${meta.mainProgram} completion fish) \
|
|
--zsh <($out/bin/${meta.mainProgram} completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Security scanner that detects misconfigurations and vulnerabilities in build pipelines of repositories";
|
|
homepage = "https://github.com/boostsecurityio/poutine";
|
|
changelog = "https://github.com/boostsecurityio/poutine/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "poutine";
|
|
};
|
|
}
|