1 { lib, buildDotnetModule, fetchFromGitHub, z3 }:
3 buildDotnetModule rec {
7 src = fetchFromGitHub {
11 hash = "sha256-wpMENrhfD8+bt66gd29xkfLANcMbPpkzDacj0KPuXT4=";
14 projectFile = [ "Source/Boogie.sln" ];
15 nugetDeps = ./deps.nix;
17 # [...]Microsoft.NET.Publish.targets(248,5): error MSB3021: Unable to copy file "[...]/NUnit3.TestAdapter.pdb" to "[...]/NUnit3.TestAdapter.pdb". Access to the path '[...]/NUnit3.TestAdapter.pdb' is denied. [[...]/ExecutionEngineTests.csproj]
18 enableParallelBuilding = false;
20 executables = [ "BoogieDriver" ];
23 "--prefix PATH : ${z3}/bin"
27 # so that this derivation can be used as a vim plugin to install syntax highlighting
28 vimdir=$out/share/vim-plugins/boogie
29 install -Dt $vimdir/syntax/ Util/vim/syntax/boogie.vim
30 mkdir $vimdir/ftdetect
31 echo 'au BufRead,BufNewFile *.bpl set filetype=boogie' > $vimdir/ftdetect/bpl.vim
32 mkdir -p $out/share/nvim
33 ln -s $out/share/vim-plugins/boogie $out/share/nvim/site
37 ln -s "$out/bin/BoogieDriver" "$out/bin/boogie"
38 rm -f $out/bin/{Microsoft,NUnit3,System}.* "$out/bin"/*Tests
41 doInstallCheck = true;
42 installCheckPhase = ''
43 $out/bin/boogie ${./install-check-file.bpl}
47 description = "Intermediate verification language";
48 homepage = "https://github.com/boogie-org/boogie";
50 Boogie is an intermediate verification language (IVL), intended as a
51 layer on which to build program verifiers for other languages.
53 This derivation may be used as a vim plugin to provide syntax highlighting.
55 license = licenses.mspl;
56 maintainers = [ maintainers.taktoa ];
57 platforms = with platforms; (linux ++ darwin);