2019-10-27 12:40:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
2020-06-01 23:13:56 +00:00
|
|
|
, buildGoModule
|
2019-10-27 12:40:31 +00:00
|
|
|
, pigeon
|
|
|
|
}:
|
|
|
|
|
2020-06-01 23:13:56 +00:00
|
|
|
buildGoModule rec {
|
2019-08-28 08:07:11 +00:00
|
|
|
pname = "verifpal";
|
2021-11-28 18:01:15 +00:00
|
|
|
version = "0.26.1";
|
2019-08-28 08:07:11 +00:00
|
|
|
|
2019-10-27 12:40:31 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://source.symbolic.software/verifpal/verifpal.git";
|
2020-06-01 23:13:56 +00:00
|
|
|
rev = "v${version}";
|
2021-11-28 18:01:15 +00:00
|
|
|
sha256 = "sha256-y07RXv2QSyUJpGuFsLJ2sGNo4YzhoCYQr3PkUj4eIOY=";
|
2019-08-28 08:07:11 +00:00
|
|
|
};
|
|
|
|
|
2021-11-28 18:01:15 +00:00
|
|
|
vendorSha256 = "sha256-gUpgnd/xiLqRNl1bPzVp+0GM/J5GEx0VhUfo6JsX8N8=";
|
2019-10-27 12:40:31 +00:00
|
|
|
|
2020-06-01 23:13:56 +00:00
|
|
|
nativeBuildInputs = [ pigeon ];
|
2019-08-28 08:07:11 +00:00
|
|
|
|
2020-06-01 23:13:56 +00:00
|
|
|
subPackages = [ "cmd/verifpal" ];
|
2019-08-28 08:07:11 +00:00
|
|
|
|
2020-06-01 23:13:56 +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
|
2019-08-28 08:07:11 +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 ];
|
2019-10-27 12:40:31 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-08-28 08:07:11 +00:00
|
|
|
};
|
|
|
|
}
|