1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
9 builtins.replaceStrings [ "." ] [ "" ] version
11 hash = "sha256-qk87uLFZZL9HNPNlyVh+Mplr3dP1C/z1O5UVS+rnbuM=";
15 substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
18 makeFlags = [ "-C" "core" ];
22 install -D -t $out/bin core/clips
23 install -D -t $out/lib core/libclips.a
24 install -D -t $out/include core/*.h
29 description = "Tool for Building Expert Systems";
30 mainProgram = "clips";
31 homepage = "http://www.clipsrules.net/";
33 Developed at NASA's Johnson Space Center from 1985 to 1996,
34 CLIPS is a rule-based programming language useful for creating
35 expert systems and other programs where a heuristic solution is
36 easier to implement and maintain than an algorithmic solution.
38 license = licenses.publicDomain;
39 maintainers = [ maintainers.league ];
40 platforms = platforms.unix;