2021-03-09 03:18:52 +00:00
|
|
|
{ lib, stdenv, fetchurl, haskell, spass }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "system-for-automated-deduction-2.3.25";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nevidal.org/download/sad-2.3-25.tar.gz";
|
|
|
|
sha256 = "10jd93xgarik7xwys5lq7fx4vqp7c0yg1gfin9cqfch1k1v8ap4b";
|
|
|
|
};
|
|
|
|
buildInputs = [ haskell.compiler.ghc844 spass ];
|
|
|
|
patches = [
|
2020-05-29 06:06:01 +00:00
|
|
|
./patch.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
# Since the LTS 12.0 update, <> is an operator in Prelude, colliding with
|
|
|
|
# the <> operator with a different meaning defined by this package
|
|
|
|
./monoid.patch
|
|
|
|
];
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Alice/Main.hs --replace init.opt $out/init.opt
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,provers}
|
|
|
|
install alice $out/bin
|
|
|
|
install provers/moses $out/provers
|
|
|
|
substituteAll provers/provers.dat $out/provers/provers.dat
|
|
|
|
substituteAll init.opt $out/init.opt
|
|
|
|
cp -r examples $out
|
|
|
|
'';
|
|
|
|
inherit spass;
|
|
|
|
meta = {
|
|
|
|
description = "A program for automated proving of mathematical texts";
|
|
|
|
longDescription = ''
|
|
|
|
The system for automated deduction is intended for automated processing of formal mathematical texts
|
|
|
|
written in a special language called ForTheL (FORmal THEory Language) or in a traditional first-order language
|
|
|
|
'';
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.schmitthenner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://nevidal.org/sad.en.html";
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-08-20 17:08:02 +00:00
|
|
|
broken = true; # ghc-8.4.4 is gone from Nixpkgs
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|