2016-03-31 16:22:56 +02:00
|
|
|
{stdenv, fetchurl, ocaml, zlib, which, eprover, makeWrapper, coq}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "satallax-${version}";
|
|
|
|
version = "2.7";
|
2010-12-03 12:26:34 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
buildInputs = [ocaml zlib which eprover makeWrapper coq];
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.ps.uni-saarland.de/~cebrown/satallax/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "1kvxn8mc35igk4vigi5cp7w3wpxk2z3bgwllfm4n3h2jfs0vkpib";
|
2010-12-03 12:26:34 +01:00
|
|
|
};
|
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
preConfigure = ''
|
|
|
|
mkdir fake-tools
|
|
|
|
echo "echo 'Nix-build-host.localdomain'" > fake-tools/hostname
|
|
|
|
chmod a+x fake-tools/hostname
|
|
|
|
export PATH="$PATH:$PWD/fake-tools"
|
2010-12-03 12:26:34 +01:00
|
|
|
|
|
|
|
(
|
2016-03-31 16:22:56 +02:00
|
|
|
cd picosat-*
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
)
|
|
|
|
export PATH="$PATH:$PWD/libexec/satallax"
|
|
|
|
|
|
|
|
mkdir -p "$out/libexec/satallax"
|
|
|
|
cp picosat-*/picosat picosat-*/picomus "$out/libexec/satallax"
|
|
|
|
|
|
|
|
(
|
|
|
|
cd minisat
|
|
|
|
export MROOT=$PWD
|
|
|
|
cd core
|
|
|
|
make
|
|
|
|
cd ../simp
|
2010-12-03 12:26:34 +01:00
|
|
|
make
|
|
|
|
)
|
2016-03-31 16:22:56 +02:00
|
|
|
'';
|
2010-12-03 12:26:34 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
postBuild = "echo testing; ! (bash ./test | grep ERROR)";
|
2010-12-03 12:26:34 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/doc/satallax" "$out/bin" "$out/lib" "$out/lib/satallax"
|
|
|
|
cp bin/satallax.opt "$out/bin/satallax"
|
|
|
|
wrapProgram "$out/bin/satallax" \
|
2016-08-23 00:13:49 +02:00
|
|
|
--suffix PATH : "${stdenv.lib.makeBinPath [ coq eprover ]}:$out/libexec/satallax" \
|
2016-03-31 16:22:56 +02:00
|
|
|
--add-flags "-M" --add-flags "$out/lib/satallax/modes"
|
2010-12-03 12:26:34 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
cp LICENSE README "$out/share/doc/satallax"
|
2010-12-03 12:26:34 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
cp bin/*.so "$out/lib"
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2016-03-31 16:22:56 +02:00
|
|
|
cp -r modes "$out/lib/satallax/"
|
|
|
|
cp -r problems "$out/lib/satallax/"
|
|
|
|
cp -r coq* "$out/lib/satallax/"
|
|
|
|
'';
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2010-12-03 12:26:34 +01:00
|
|
|
meta = {
|
2016-03-31 16:22:56 +02:00
|
|
|
inherit version;
|
|
|
|
description = ''Automated theorem prover for higher-order logic'';
|
|
|
|
license = stdenv.lib.licenses.mit ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
downloadPage = "http://www.ps.uni-saarland.de/~cebrown/satallax/downloads.php";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.ps.uni-saarland.de/~cebrown/satallax/index.php;
|
2016-03-31 16:22:56 +02:00
|
|
|
updateWalker = true;
|
2010-12-03 12:26:34 +01:00
|
|
|
};
|
2016-03-31 16:22:56 +02:00
|
|
|
}
|