mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
verifpal: init at 0.2
This commit is contained in:
parent
027b117fee
commit
792bb4f7f6
38
pkgs/tools/security/verifpal/default.nix
Normal file
38
pkgs/tools/security/verifpal/default.nix
Normal file
@ -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
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 {};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user