2019-10-27 13:40:31 +01:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
2020-06-02 01:13:56 +02:00
|
|
|
, buildGoModule
|
2019-10-27 13:40:31 +01:00
|
|
|
, pigeon
|
|
|
|
}:
|
|
|
|
|
2020-06-02 01:13:56 +02:00
|
|
|
buildGoModule rec {
|
2019-08-28 10:07:11 +02:00
|
|
|
pname = "verifpal";
|
2021-08-02 19:30:29 +02:00
|
|
|
version = "0.26.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";
|
2020-06-02 01:13:56 +02:00
|
|
|
rev = "v${version}";
|
2021-08-02 19:30:29 +02:00
|
|
|
sha256 = "1ag1fpgk4xa5041y6a0pchmh32j876bl0iqjb7lxxqg5nc76d3v1";
|
2019-08-28 10:07:11 +02:00
|
|
|
};
|
|
|
|
|
2021-08-02 19:30:29 +02:00
|
|
|
vendorSha256 = "XHeXonzRDHXayge5G3apvDarbOfTiV+UQ+IqSbrLkCk=";
|
2019-10-27 13:40:31 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-02 01:13:56 +02:00
|
|
|
nativeBuildInputs = [ pigeon ];
|
2019-08-28 10:07:11 +02:00
|
|
|
|
2020-06-02 01:13:56 +02:00
|
|
|
subPackages = [ "cmd/verifpal" ];
|
2019-08-28 10:07:11 +02:00
|
|
|
|
2020-06-02 01:13:56 +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 ];
|
2019-10-27 13:40:31 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-08-28 10:07:11 +02:00
|
|
|
};
|
|
|
|
}
|