depot/third_party/nixpkgs/pkgs/tools/security/verifpal/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

36 lines
955 B
Nix

{ lib
, fetchgit
, buildGoModule
, pigeon
}:
buildGoModule rec {
pname = "verifpal";
version = "0.26.0";
src = fetchgit {
url = "https://source.symbolic.software/verifpal/verifpal.git";
rev = "v${version}";
sha256 = "1ag1fpgk4xa5041y6a0pchmh32j876bl0iqjb7lxxqg5nc76d3v1";
};
vendorSha256 = "XHeXonzRDHXayge5G3apvDarbOfTiV+UQ+IqSbrLkCk=";
nativeBuildInputs = [ pigeon ];
subPackages = [ "cmd/verifpal" ];
# 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
'';
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" ];
};
}