diff --git a/pkgs/applications/science/logic/vampire/default.nix b/pkgs/applications/science/logic/vampire/default.nix new file mode 100644 index 00000000000..12b2a36c6ea --- /dev/null +++ b/pkgs/applications/science/logic/vampire/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, z3, zlib, git }: + +stdenv.mkDerivation rec { + version = "4.2.2"; + name = "vampire-${version}"; + + src = fetchFromGitHub { + owner = "vprover"; + repo = "vampire"; + rev = version; + sha256 = "080zwgmyhn0b2c6hqlhcgaw7n3frz02sh894v5kk68kzxbqr29w2"; + fetchSubmodules = true; + leaveDotGit = true; + }; + + nativeBuildInputs = [ git ]; + buildInputs = [ z3 zlib ]; + + makeFlags = [ "vampire_z3_rel" ]; + + fixupPhase = '' + rm -rf z3 + ''; + + installPhase = '' + install -m0755 -D vampire_z3_rel* $out/bin/vampire + ''; + + meta = with stdenv.lib; { + homepage = "https://vprover.github.io/"; + description = "The Vampire Theorem Prover"; + platforms = platforms.unix; + license = licenses.unfree; + maintainers = with maintainers; [ gebner ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b4cece5500..7bea76100ad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5529,6 +5529,8 @@ with pkgs; vacuum = callPackage ../applications/networking/instant-messengers/vacuum {}; + vampire = callPackage ../applications/science/logic/vampire {}; + volatility = callPackage ../tools/security/volatility { }; vbetool = callPackage ../tools/system/vbetool { };