nixpkgs/pkgs/applications/science/logic/spass/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

2016-06-21 08:18:20 +02:00
{ stdenv, fetchurl, bison, flex }:
2015-07-16 03:36:15 +02:00
let
baseVersion="3";
2016-06-21 08:18:20 +02:00
minorVersion="9";
extraTools = "FLOTTER prolog2dfg dfg2otter dfg2dimacs dfg2tptp"
+ " dfg2ascii dfg2dfg tptp2dfg dimacs2dfg pgen rescmp";
in
2015-07-16 03:36:15 +02:00
stdenv.mkDerivation rec {
name = "spass-${version}";
version = "${baseVersion}.${minorVersion}";
src = fetchurl {
url = "http://www.spass-prover.org/download/sources/spass${baseVersion}${minorVersion}.tgz";
2016-06-21 08:18:20 +02:00
sha256 = "11cyn3kcff4r79rsw2s0xm6rdb8bi0kpkazv2b48jhcms7xw75qp";
2015-07-16 03:36:15 +02:00
};
2016-06-21 08:18:20 +02:00
sourceRoot = ".";
nativeBuildInputs = [ bison flex ];
buildPhase = ''
make RM="rm -f" proparser.c ${extraTools} opt
'';
installPhase = ''
mkdir -p $out/bin
install -m0755 SPASS ${extraTools} $out/bin/
'';
2015-07-16 03:36:15 +02:00
meta = with stdenv.lib; {
2016-06-21 08:18:20 +02:00
description = "Automated theorem prover for first-order logic";
2015-07-16 03:36:15 +02:00
maintainers = with maintainers;
[
raskin
];
2016-06-21 08:18:20 +02:00
platforms = platforms.unix;
2015-07-16 03:36:15 +02:00
license = licenses.bsd2;
downloadPage = "http://www.spass-prover.org/download/index.html";
};
2015-07-16 03:36:15 +02:00
}