@@ -1,17 +1,19 @@
11{ lib, stdenv, fetchurl }:
22
3−stdenv.mkDerivation {
4− version = "6.30";
3+stdenv.mkDerivation rec {
4+ version = "6.31";
55 pname = "clips";
66 src = fetchurl {
7− url = "mirror://sourceforge/clipsrules/CLIPS/6.30/clips_core_source_630.tar.Z";
8− sha256 = "1r0m59l3mk9cwzq3nmyr5qxrlkzp3njls4hfv8ml85dmqh7n3ysy";
7+ url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
8+ builtins.replaceStrings [ "." ] [ "" ] version
9+ }.tar.gz";
10+ sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
911 };
10− buildPhase = ''
11− make -C core -f ../makefiles/makefile.gcc
12− '';
12+ makeFlags = [ "-C" "core" ];
1313 installPhase = ''
14+ runHook preInstall
1415 install -D -t $out/bin core/clips
16+ runHook postInstall
1517 '';
1618 meta = with lib; {
1719 description = "A Tool for Building Expert Systems";
@@ -23,7 +25,7 @@ stdenv.mkDerivation {
2325 easier to implement and maintain than an algorithmic solution.
2426 '';
2527 license = licenses.publicDomain;
26− maintainers = [maintainers.league];
28+ maintainers = [ maintainers.league ];
2729 platforms = platforms.linux;
2830 };
2931}