acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / cl / clips / package.nix
blobc5c4d4321ce137a040fa396e42cec2648a552c5f
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   version = "6.4.1";
5   pname = "clips";
7   src = fetchurl {
8     url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
9         builtins.replaceStrings [ "." ] [ "" ] version
10       }.tar.gz";
11     hash = "sha256-qk87uLFZZL9HNPNlyVh+Mplr3dP1C/z1O5UVS+rnbuM=";
12   };
14   postPatch = ''
15     substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
16   '';
18   makeFlags = [ "-C" "core" ];
20   installPhase = ''
21     runHook preInstall
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
25     runHook postInstall
26   '';
28   meta = with lib; {
29     description = "Tool for Building Expert Systems";
30     mainProgram = "clips";
31     homepage = "http://www.clipsrules.net/";
32     longDescription = ''
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.
37     '';
38     license = licenses.publicDomain;
39     maintainers = [ maintainers.league ];
40     platforms = platforms.unix;
41   };