2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildDotnetModule, fetchFromGitHub, z3 }:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "Boogie";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.1.6";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boogie-org";
|
|
|
|
repo = "boogie";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-Bli/vEzzVQTWicQJskK9cQC2XsFRwMxX9cAePXN511c=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
projectFile = [ "Source/Boogie.sln" ];
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
|
|
|
|
executables = [ "BoogieDriver" ];
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix PATH : ${z3}/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# so that this derivation can be used as a vim plugin to install syntax highlighting
|
|
|
|
vimdir=$out/share/vim-plugins/boogie
|
|
|
|
install -Dt $vimdir/syntax/ Util/vim/syntax/boogie.vim
|
|
|
|
mkdir $vimdir/ftdetect
|
|
|
|
echo 'au BufRead,BufNewFile *.bpl set filetype=boogie' > $vimdir/ftdetect/bpl.vim
|
|
|
|
mkdir -p $out/share/nvim
|
|
|
|
ln -s $out/share/vim-plugins/boogie $out/share/nvim/site
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
ln -s "$out/bin/BoogieDriver" "$out/bin/boogie"
|
|
|
|
rm -f $out/bin/{Microsoft,NUnit3,System}.* "$out/bin"/*Tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/boogie ${./install-check-file.bpl}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Intermediate verification language";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/boogie-org/boogie";
|
|
|
|
longDescription = ''
|
|
|
|
Boogie is an intermediate verification language (IVL), intended as a
|
|
|
|
layer on which to build program verifiers for other languages.
|
|
|
|
|
|
|
|
This derivation may be used as a vim plugin to provide syntax highlighting.
|
|
|
|
'';
|
|
|
|
license = licenses.mspl;
|
|
|
|
maintainers = [ maintainers.taktoa ];
|
|
|
|
platforms = with platforms; (linux ++ darwin);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|