nixpkgs/pkgs/development/interpreters/clips/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
2021-06-07 14:44:10 +00:00
version = "6.40";
pname = "clips";
2021-03-04 07:59:51 +00:00
src = fetchurl {
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
builtins.replaceStrings [ "." ] [ "" ] version
}.tar.gz";
2021-06-07 14:44:10 +00:00
sha256 = "1pr5l61zxf6kjs8b2b028g2aq45pigavwjmrf4l5mrdmlnk3fq5d";
};
2021-03-04 07:59:51 +00:00
postPatch = ''
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
makeFlags = [ "-C" "core" ];
2021-03-04 07:59:51 +00:00
installPhase = ''
runHook preInstall
install -D -t $out/bin core/clips
runHook postInstall
'';
2021-03-04 07:59:51 +00:00
meta = with lib; {
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;
maintainers = [ maintainers.league ];
2021-03-04 07:59:51 +00:00
platforms = platforms.unix;
};
}