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

43 lines
931 B
Nix
Raw Normal View History

2019-10-27 13:40:31 +01:00
{ lib
, fetchgit
, buildGoPackage
, pigeon
}:
2019-08-28 10:07:11 +02:00
buildGoPackage rec {
pname = "verifpal";
2019-10-27 13:40:31 +01:00
version = "0.7.5";
2019-08-28 10:07:11 +02:00
goPackagePath = "github.com/SymbolicSoft/verifpal";
goDeps = ./deps.nix;
2019-10-27 13:40:31 +01:00
src = fetchgit {
url = "https://source.symbolic.software/verifpal/verifpal.git";
2019-08-28 10:07:11 +02:00
rev = version;
2019-10-27 13:40:31 +01:00
sha256 = "0njgn6j5qg5kgid6ddv23axhw5gwjbayhdjkj4ya08mnxndr284m";
2019-08-28 10:07:11 +02:00
};
2019-10-27 13:40:31 +01:00
nativeBuildInputs = [ pigeon ];
2019-08-28 10:07:11 +02:00
postPatch = ''
sed -e 's|/bin/echo |echo |g' -i Makefile
'';
buildPhase = ''
make -C go/src/$goPackagePath parser linux
'';
installPhase = ''
mkdir -p $bin/bin
cp go/src/$goPackagePath/build/bin/linux/verifpal $bin/bin/
'';
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
};
}