blob: b37bdf00d55ae710e0eeeeb84f7d2f1935435767 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
stdenv,
lib,
fetchFromBitbucket,
jdk,
}:
stdenv.mkDerivation rec {
pname = "factplusplus";
version = "1.6.5";
src = fetchFromBitbucket {
owner = "dtsarkov";
repo = "factplusplus";
rev = "Release-${version}";
sha256 = "wzK1QJsNN0Q73NM+vjaE/vLuGf8J1Zu5ZPAkZNiKnME=";
};
buildInputs = [ jdk ];
configurePhase = ''
runHook preConfigure
sed -i 's/OS = MACOSX/OS = LINUX/g' Makefile.include
printf '%s\n%s\n' '#include <iostream>' "$(cat Kernel/AtomicDecomposer.cpp)" > Kernel/AtomicDecomposer.cpp
runHook postConfigure
'';
installPhase = ''
runHook preInstall
install -Dm755 FaCT++.{C,JNI,KE,Kernel}/obj/*.{so,o} -t $out/lib/
install -Dm755 FaCT++/obj/FaCT++ -t $out/bin
runHook postInstall
'';
meta = with lib; {
description = "Tableaux-based reasoner for expressive Description Logics (DL)";
homepage = "http://owl.cs.manchester.ac.uk/tools/fact/";
maintainers = [ maintainers.mgttlinger ];
license = licenses.gpl2Plus;
platforms = with platforms; linux ++ darwin ++ windows;
broken = !stdenv.hostPlatform.isLinux;
mainProgram = "FaCT++";
};
}
|