verifpal: init at 0.2

This commit is contained in:
zimbatm 2019-08-28 10:07:11 +02:00
parent 027b117fee
commit 792bb4f7f6
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
3 changed files with 52 additions and 0 deletions

@ -0,0 +1,38 @@
{ lib, fetchFromGitHub, buildGoPackage, pigeon }:
buildGoPackage rec {
pname = "verifpal";
version = "0.2";
goPackagePath = "github.com/SymbolicSoft/verifpal";
goDeps = ./deps.nix;
src = fetchFromGitHub {
owner = "SymbolicSoft";
repo = pname;
rev = version;
sha256 = "08a0xvgg94k6vq91ylvgi97kpkjbw0rw172v2dzwl2rfpzkigk1r";
};
postPatch = ''
sed -e 's|/bin/echo |echo |g' -i Makefile
'';
buildInputs = [ pigeon ];
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 ];
platforms = ["x86_64-linux"];
};
}

12
pkgs/tools/security/verifpal/deps.nix generated Normal file

@ -0,0 +1,12 @@
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
[
{
goPackagePath = "github.com/logrusorgru/aurora";
fetch = {
type = "git";
url = "https://github.com/logrusorgru/aurora";
rev = "94edacc10f9b";
sha256 = "0bhwy3rrd8mwb8xjwf44nj6vmxaj5hdvayvszr1rskkmz08l5v01";
};
}
]

@ -24891,4 +24891,6 @@ in
pigeon = callPackage ../development/tools/pigeon {};
verifpal = callPackage ../tools/security/verifpal {};
}