mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.4.1";
|
|
pname = "clips";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
|
|
builtins.replaceStrings [ "." ] [ "" ] version
|
|
}.tar.gz";
|
|
hash = "sha256-qk87uLFZZL9HNPNlyVh+Mplr3dP1C/z1O5UVS+rnbuM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
|
'';
|
|
|
|
makeFlags = [ "-C" "core" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D -t $out/bin core/clips
|
|
install -D -t $out/lib core/libclips.a
|
|
install -D -t $out/include core/*.h
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for Building Expert Systems";
|
|
mainProgram = "clips";
|
|
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 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|