Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 42 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 version = "6.4.1"; 5 pname = "clips"; 6 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 }; 13 14 postPatch = '' 15 substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc' 16 ''; 17 18 makeFlags = [ "-C" "core" ]; 19 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 ''; 27 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 }; 42}