about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/logic/metis-prover/default.nix
blob: 7e46dbeb0743107f178157d98f42e99403adb4fe (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
30
31
32
{ stdenv, fetchFromGitHub, perl, mlton }:

stdenv.mkDerivation rec {
  pname = "metis-prover";
  version = "2.3.20160713";

  src = fetchFromGitHub {
    owner = "gilith";
    repo = "metis";
    rev = "f0b1a17cd57eb098077e963ab092477aee9fb340";
    sha256 = "1i7paax7b4byk8110f5zk4071mh5603r82bq7hbprqzljvsiipk7";
  };

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

  patchPhase = "patchShebangs .";

  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 ];
    platforms = platforms.unix;
  };
}