summary refs log tree commit diff
path: root/pkgs/applications/science/logic/metis-prover/default.nix
blob: 0aa3d6e51c372b2730b3a15317c32cc287c7fab9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, perl, mlton }:

stdenv.mkDerivation rec {
  name = "metis-prover-${version}";
  version = "2.3";

  src = fetchurl {
    url = "http://www.gilith.com/software/metis/metis.tar.gz";
    sha256 = "07wqhic66i5ip2j194x6pswwrxyxrimpc4vg0haa5aqv9pfpmxad";
  };

  nativeBuildInputs = [ perl ];
  buildInputs = [ mlton ];

  patchPhase = "patchShebangs scripts/mlpp";

  buildPhase = "make mlton";

  installPhase = ''
    install -Dm0755 bin/mlton/metis $out/bin/metis
  '';

  meta = with stdenv.lib; {
    description = "Automatic theorem prover for first-order logic with equality";
    homepage = http://www.gilith.com/research/metis/;
    license = licenses.mit;
    maintainers = with maintainers; [ gebner ];
  };
}