parent
a3d4aab1db
commit
db691029d6
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, zlib, jdk }:
|
{ stdenv, fetchFromGitHub, zlib, jdk, CoreServices, Foundation }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "avian-${version}";
|
name = "avian-${version}";
|
||||||
@ -11,10 +11,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1j2y45cpqk3x6a743mgpg7z3ivwm7qc9jy6xirvay7ah1qyxmm48";
|
sha256 = "1j2y45cpqk3x6a743mgpg7z3ivwm7qc9jy6xirvay7ah1qyxmm48";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [ zlib jdk ]
|
||||||
zlib
|
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Foundation ];
|
||||||
jdk
|
|
||||||
];
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace makefile \
|
||||||
|
--replace 'g++' 'c++' \
|
||||||
|
--replace 'gcc' 'cc'
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -5769,7 +5769,8 @@ with pkgs;
|
|||||||
avra = callPackage ../development/compilers/avra { };
|
avra = callPackage ../development/compilers/avra { };
|
||||||
|
|
||||||
avian = callPackage ../development/compilers/avian {
|
avian = callPackage ../development/compilers/avian {
|
||||||
stdenv = overrideCC stdenv gcc49;
|
inherit (darwin.apple_sdk.frameworks) CoreServices Foundation;
|
||||||
|
stdenv = if stdenv.cc.isGNU then overrideCC stdenv gcc49 else stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
bigloo = callPackage ../development/compilers/bigloo { };
|
bigloo = callPackage ../development/compilers/bigloo { };
|
||||||
|
Loading…
Reference in New Issue
Block a user