Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 version = "6.4.2"; 9 pname = "clips"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${ 13 builtins.replaceStrings [ "." ] [ "" ] version 14 }.tar.gz"; 15 hash = "sha256-YIoesvxunK/zDWPWhAlfC8pxCPIpTSHub1YXQnwQRVo="; 16 }; 17 18 postPatch = '' 19 substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc' 20 ''; 21 22 makeFlags = [ 23 "-C" 24 "core" 25 ]; 26 27 installPhase = '' 28 runHook preInstall 29 install -D -t $out/bin core/clips 30 install -D -t $out/lib core/libclips.a 31 install -D -t $out/include core/*.h 32 runHook postInstall 33 ''; 34 35 meta = with lib; { 36 description = "Tool for Building Expert Systems"; 37 mainProgram = "clips"; 38 homepage = "http://www.clipsrules.net/"; 39 longDescription = '' 40 Developed at NASA's Johnson Space Center from 1985 to 1996, 41 CLIPS is a rule-based programming language useful for creating 42 expert systems and other programs where a heuristic solution is 43 easier to implement and maintain than an algorithmic solution. 44 ''; 45 license = licenses.publicDomain; 46 maintainers = [ maintainers.league ]; 47 platforms = platforms.unix; 48 }; 49}