about summary refs log tree commit diff
path: root/pkgs/development/interpreters/clips
diff options
context:
space:
mode:
authorChristopher League <league@contrapunctus.net>2021-02-26 12:16:54 -0500
committerGitHub <noreply@github.com>2021-02-26 18:16:54 +0100
commit218353d3f053aa586edef85ec8a772991da93736 (patch)
treea2b52a43eae35cc55b94ae37a66959a8f5a2ecd7 /pkgs/development/interpreters/clips
parent4f1bbdc882134e4c8105bbcf0f114570d22e5add (diff)
downloadnixlib-218353d3f053aa586edef85ec8a772991da93736.tar
nixlib-218353d3f053aa586edef85ec8a772991da93736.tar.gz
nixlib-218353d3f053aa586edef85ec8a772991da93736.tar.bz2
nixlib-218353d3f053aa586edef85ec8a772991da93736.tar.lz
nixlib-218353d3f053aa586edef85ec8a772991da93736.tar.xz
nixlib-218353d3f053aa586edef85ec8a772991da93736.tar.zst
nixlib-218353d3f053aa586edef85ec8a772991da93736.zip
clips: 6.30 -> 6.31; supersedes and closes #109914 (#114132)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/interpreters/clips')
-rw-r--r--pkgs/development/interpreters/clips/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/clips/default.nix b/pkgs/development/interpreters/clips/default.nix
index d38fb8279f0b..db6554874af5 100644
--- a/pkgs/development/interpreters/clips/default.nix
+++ b/pkgs/development/interpreters/clips/default.nix
@@ -1,17 +1,19 @@
 { lib, stdenv, fetchurl }:
 
-stdenv.mkDerivation {
-  version = "6.30";
+stdenv.mkDerivation rec {
+  version = "6.31";
   pname = "clips";
   src = fetchurl {
-    url = "mirror://sourceforge/clipsrules/CLIPS/6.30/clips_core_source_630.tar.Z";
-    sha256 = "1r0m59l3mk9cwzq3nmyr5qxrlkzp3njls4hfv8ml85dmqh7n3ysy";
+    url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
+        builtins.replaceStrings [ "." ] [ "" ] version
+      }.tar.gz";
+    sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
   };
-  buildPhase = ''
-    make -C core -f ../makefiles/makefile.gcc
-  '';
+  makeFlags = [ "-C" "core" ];
   installPhase = ''
+    runHook preInstall
     install -D -t $out/bin core/clips
+    runHook postInstall
   '';
   meta = with lib; {
     description = "A Tool for Building Expert Systems";
@@ -23,7 +25,7 @@ stdenv.mkDerivation {
       easier to implement and maintain than an algorithmic solution.
     '';
     license = licenses.publicDomain;
-    maintainers = [maintainers.league];
+    maintainers = [ maintainers.league ];
     platforms = platforms.linux;
   };
 }