2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
2020-07-18 16:06:22 +00:00
|
|
|
, buildGoModule
|
2020-04-24 23:36:52 +00:00
|
|
|
, pigeon
|
|
|
|
}:
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "verifpal";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.13.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://source.symbolic.software/verifpal/verifpal.git";
|
2020-07-18 16:06:22 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ia3mxwcvcxghga2vvhf6mia59cm3jl7vh8laywh421bfj42sh9d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
vendorSha256 = "0cmj6h103igg5pcs9c9wrcmrsf0mwp9vbgzf5amsnj1206ryb1p2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ pigeon ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
subPackages = [ "cmd/verifpal" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://verifpal.com/";
|
|
|
|
description = "Cryptographic protocol analysis for students and engineers";
|
|
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|