2021-01-23 14:15:07 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2017-03-09 20:35:37 +01:00
|
|
|
|
2021-02-26 18:16:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2024-06-02 10:46:08 +02:00
|
|
|
version = "6.4.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "clips";
|
2021-03-04 08:59:51 +01:00
|
|
|
|
2017-03-09 20:35:37 +01:00
|
|
|
src = fetchurl {
|
2021-02-26 18:16:54 +01:00
|
|
|
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
|
|
|
|
builtins.replaceStrings [ "." ] [ "" ] version
|
|
|
|
}.tar.gz";
|
2024-06-02 10:46:08 +02:00
|
|
|
hash = "sha256-qk87uLFZZL9HNPNlyVh+Mplr3dP1C/z1O5UVS+rnbuM=";
|
2017-03-09 20:35:37 +01:00
|
|
|
};
|
2021-03-04 08:59:51 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
|
|
|
'';
|
|
|
|
|
2021-02-26 18:16:54 +01:00
|
|
|
makeFlags = [ "-C" "core" ];
|
2021-03-04 08:59:51 +01:00
|
|
|
|
2017-03-09 20:35:37 +01:00
|
|
|
installPhase = ''
|
2021-02-26 18:16:54 +01:00
|
|
|
runHook preInstall
|
2017-03-09 20:35:37 +01:00
|
|
|
install -D -t $out/bin core/clips
|
2024-06-02 10:46:35 +02:00
|
|
|
install -D -t $out/lib core/libclips.a
|
|
|
|
install -D -t $out/include core/*.h
|
2021-02-26 18:16:54 +01:00
|
|
|
runHook postInstall
|
2017-03-09 20:35:37 +01:00
|
|
|
'';
|
2021-03-04 08:59:51 +01:00
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2017-03-09 20:35:37 +01:00
|
|
|
description = "Tool for Building Expert Systems";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "clips";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.clipsrules.net/";
|
2017-03-09 20:35:37 +01:00
|
|
|
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-02-26 18:16:54 +01:00
|
|
|
maintainers = [ maintainers.league ];
|
2021-03-04 08:59:51 +01:00
|
|
|
platforms = platforms.unix;
|
2017-03-09 20:35:37 +01:00
|
|
|
};
|
|
|
|
}
|