1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/security/verifpal/default.nix

43 lines
931 B
Nix
Raw Normal View History

2019-10-27 12:40:31 +00:00
{ lib
, fetchgit
, buildGoPackage
, pigeon
}:
2019-08-28 09:07:11 +01:00
buildGoPackage rec {
pname = "verifpal";
2019-10-27 12:40:31 +00:00
version = "0.7.5";
2019-08-28 09:07:11 +01:00
goPackagePath = "github.com/SymbolicSoft/verifpal";
goDeps = ./deps.nix;
2019-10-27 12:40:31 +00:00
src = fetchgit {
url = "https://source.symbolic.software/verifpal/verifpal.git";
2019-08-28 09:07:11 +01:00
rev = version;
2019-10-27 12:40:31 +00:00
sha256 = "0njgn6j5qg5kgid6ddv23axhw5gwjbayhdjkj4ya08mnxndr284m";
2019-08-28 09:07:11 +01:00
};
2019-10-27 12:40:31 +00:00
nativeBuildInputs = [ pigeon ];
2019-08-28 09:07:11 +01: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 12:40:31 +00:00
platforms = [ "x86_64-linux" ];
2019-08-28 09:07:11 +01:00
};
}