1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 version = "6.30";
5 name = "clips-${version}";
6 src = fetchurl {
7 url = "mirror://sourceforge/clipsrules/CLIPS/6.30/clips_core_source_630.tar.Z";
8 sha256 = "1r0m59l3mk9cwzq3nmyr5qxrlkzp3njls4hfv8ml85dmqh7n3ysy";
9 };
10 buildPhase = ''
11 make -C core -f ../makefiles/makefile.gcc
12 '';
13 installPhase = ''
14 install -D -t $out/bin core/clips
15 '';
16 meta = with stdenv.lib; {
17 description = "A Tool for Building Expert Systems";
18 homepage = http://www.clipsrules.net/;
19 longDescription = ''
20 Developed at NASA's Johnson Space Center from 1985 to 1996,
21 CLIPS is a rule-based programming language useful for creating
22 expert systems and other programs where a heuristic solution is
23 easier to implement and maintain than an algorithmic solution.
24 '';
25 license = licenses.publicDomain;
26 maintainers = [maintainers.league];
27 platforms = platforms.linux;
28 };
29}