2013-05-09 09:23:27 +01:00
|
|
|
{stdenv, fetchurl, tcsh, libXaw, libXt, libX11}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
version = "3.3f";
|
|
|
|
name = "otter";
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://www.cs.unm.edu/~mccune/otter/otter-${version}.tar.gz";
|
2013-05-09 09:23:27 +01:00
|
|
|
sha256 = "16mc1npl7sk9cmqhrf3ghfmvx29inijw76f1b1lsykllaxjqqb1r";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
tcsh libXaw libXt libX11
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2013-06-07 01:13:54 +01:00
|
|
|
name = "${s.name}-${s.version}";
|
2013-05-09 09:23:27 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2016-02-12 13:51:05 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 13:51:05 +00:00
|
|
|
|
2013-05-09 09:23:27 +01:00
|
|
|
buildPhase = ''
|
|
|
|
find . -name Makefile | xargs sed -i -e "s@/bin/rm@$(type -P rm)@g"
|
|
|
|
find . -name Makefile | xargs sed -i -e "s@/bin/mv@$(type -P mv)@g"
|
2015-09-06 09:21:43 +01:00
|
|
|
find . -perm -0100 -type f | xargs sed -i -e "s@/bin/csh@$(type -P csh)@g"
|
|
|
|
find . -perm -0100 -type f | xargs sed -i -e "s@/bin/rm@$(type -P rm)@g"
|
|
|
|
find . -perm -0100 -type f | xargs sed -i -e "s@/bin/mv@$(type -P mv)@g"
|
2013-05-09 09:23:27 +01:00
|
|
|
|
|
|
|
sed -i -e "s/^XLIBS *=.*/XLIBS=-lXaw -lXt -lX11/" source/formed/Makefile
|
|
|
|
|
|
|
|
make all
|
|
|
|
make -C examples all
|
|
|
|
make -C examples-mace2 all
|
|
|
|
make -C source/formed realclean
|
|
|
|
make -C source/formed formed
|
|
|
|
'';
|
2016-02-12 13:51:05 +00:00
|
|
|
|
2013-05-09 09:23:27 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/otter}
|
|
|
|
cp bin/* source/formed/formed "$out/bin/"
|
|
|
|
cp -r examples examples-mace2 documents README* Legal Changelog Contents index.html "$out/share/otter/"
|
|
|
|
'';
|
2016-02-12 13:51:05 +00:00
|
|
|
|
2013-05-09 09:23:27 +01:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "A reliable first-order theorem prover";
|
|
|
|
license = stdenv.lib.licenses.publicDomain ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-04-27 01:24:04 +01:00
|
|
|
broken = true;
|
2013-05-09 09:23:27 +01:00
|
|
|
};
|
|
|
|
}
|