2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.31";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "clips";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-03-09 03:18:52 +00:00
|
|
|
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
|
|
|
|
builtins.replaceStrings [ "." ] [ "" ] version
|
|
|
|
}.tar.gz";
|
|
|
|
sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "-C" "core" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
install -D -t $out/bin core/clips
|
2021-03-09 03:18:52 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Tool for Building Expert Systems";
|
|
|
|
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 = licenses.publicDomain;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = [ maintainers.league ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|