clips: fix darwin build
This commit is contained in:
parent
77d59d21d5
commit
329a1ecb71
@ -3,18 +3,26 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "6.31";
|
version = "6.31";
|
||||||
pname = "clips";
|
pname = "clips";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
|
url = "mirror://sourceforge/clipsrules/CLIPS/${version}/clips_core_source_${
|
||||||
builtins.replaceStrings [ "." ] [ "" ] version
|
builtins.replaceStrings [ "." ] [ "" ] version
|
||||||
}.tar.gz";
|
}.tar.gz";
|
||||||
sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
|
sha256 = "165k0z7dsv04q432sanmw0jxmxwf56cnhsdfw5ffjqxd3lzkjnv6";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace core/makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [ "-C" "core" ];
|
makeFlags = [ "-C" "core" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -D -t $out/bin core/clips
|
install -D -t $out/bin core/clips
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Tool for Building Expert Systems";
|
description = "A Tool for Building Expert Systems";
|
||||||
homepage = "http://www.clipsrules.net/";
|
homepage = "http://www.clipsrules.net/";
|
||||||
@ -26,6 +34,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
license = licenses.publicDomain;
|
license = licenses.publicDomain;
|
||||||
maintainers = [ maintainers.league ];
|
maintainers = [ maintainers.league ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user