mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
39 lines
954 B
Nix
39 lines
954 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
pigeon,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "verifpal";
|
|
version = "0.27.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symbolicsoft";
|
|
repo = "verifpal";
|
|
rev = "v${version}";
|
|
hash = "sha256-kBeQ7U97Ezj85A/FbNnE1dXR7VJzx0EUrDbzwOgKl8E=";
|
|
};
|
|
|
|
vendorHash = "sha256-FvboLGdT+/W5on7NSzRp9QfV2peNVICypSFWAGFakLU=";
|
|
|
|
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";
|
|
mainProgram = "verifpal";
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
|
license = with lib.licenses; [ gpl3 ];
|
|
};
|
|
}
|