blob: 77ba15eefeec4f2187f9e96d5924d73b612df357 (
plain)
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
49
|
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
version = "6.4.2";
pname = "clips";
src = fetchurl {
url = "mirror://sourceforge/clipsrules/CLIPS/${finalAttrs.version}/clips_core_source_${
builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version
}.tar.gz";
hash = "sha256-YIoesvxunK/zDWPWhAlfC8pxCPIpTSHub1YXQnwQRVo=";
};
postPatch = ''
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
makeFlags = [
"-C"
"core"
];
installPhase = ''
runHook preInstall
install -D -t $out/bin core/clips
install -D -t $out/lib core/libclips.a
install -D -t $out/include core/*.h
runHook postInstall
'';
meta = {
description = "Tool for Building Expert Systems";
mainProgram = "clips";
homepage = "http://www.clipsrules.net/";
longDescription = ''
Developed at NASA's Johnson Space Center from 1985 to 1996,
CLIPS is a rule-based programming language useful for creating
expert systems and other programs where a heuristic solution is
easier to implement and maintain than an algorithmic solution.
'';
license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.league ];
platforms = lib.platforms.unix;
};
})
|