nixpkgs/pkgs/tools/security/verifpal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
921 B
Nix
Raw Normal View History

2019-10-27 13:40:31 +01:00
{ lib
, fetchgit
, buildGoModule
2019-10-27 13:40:31 +01:00
, pigeon
}:
buildGoModule rec {
2019-08-28 10:07:11 +02:00
pname = "verifpal";
2023-07-01 22:26:36 +02:00
version = "0.27.0";
2019-08-28 10:07:11 +02:00
2019-10-27 13:40:31 +01:00
src = fetchgit {
url = "https://source.symbolic.software/verifpal/verifpal.git";
rev = "v${version}";
2023-07-01 22:26:36 +02:00
hash = "sha256-rihY5p6nJ1PKjI+gn3NNXy+uzeBG2UNyRYy3UjScf2Q=";
2019-08-28 10:07:11 +02:00
};
2023-07-01 22:26:36 +02:00
vendorHash = "sha256-XOCRwh2nEIC+GjGwqd7nhGWQD7vBMLEZZ2FNxs0NX+E=";
2019-10-27 13:40:31 +01:00
nativeBuildInputs = [ pigeon ];
2019-08-28 10:07:11 +02:00
subPackages = [ "cmd/verifpal" ];
2019-08-28 10:07:11 +02:00
# goversioninfo is for Windows only and can be skipped during go generate
preBuild = ''
substituteInPlace cmd/verifpal/main.go --replace "go:generate goversioninfo" "(disabled goversioninfo)"
go generate verifpal.com/cmd/verifpal
2019-08-28 10:07:11 +02:00
'';
meta = {
homepage = "https://verifpal.com/";
description = "Cryptographic protocol analysis for students and engineers";
maintainers = with lib.maintainers; [ zimbatm ];
license = with lib.licenses; [ gpl3 ];
};
}