diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-04 14:59:51 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-03-06 21:01:46 +0700 |
commit | 329a1ecb713abb5e6c574413dcc1ed3f302db56c (patch) | |
tree | 1f38984cad60d4accf5937de20f8d066b649a57f /pkgs/development/interpreters/clips | |
parent | 77d59d21d5d4b22f6d4387d9c33b5c403bf002e3 (diff) |
clips: fix darwin build
Diffstat (limited to 'pkgs/development/interpreters/clips')
-rw-r--r-- | pkgs/development/interpreters/clips/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/clips/default.nix b/pkgs/development/interpreters/clips/default.nix index db6554874af55..64fd89008e335 100644 --- a/pkgs/development/interpreters/clips/default.nix +++ b/pkgs/development/interpreters/clips/default.nix @@ -3,18 +3,26 @@ stdenv.mkDerivation rec { version = "6.31"; pname = "clips"; + src = fetchurl { url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${ builtins.replaceStrings [ "." ] [ "" ] version }.tar.gz"; sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6"; }; + + postPatch = '' + substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc' + ''; + 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"; homepage = "http://www.clipsrules.net/"; @@ -26,6 +34,6 @@ stdenv.mkDerivation rec { ''; license = licenses.publicDomain; maintainers = [ maintainers.league ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |