mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
parent
a3d4aab1db
commit
db691029d6
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, zlib, jdk }:
|
||||
{ stdenv, fetchFromGitHub, zlib, jdk, CoreServices, Foundation }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "avian-${version}";
|
||||
@ -11,10 +11,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1j2y45cpqk3x6a743mgpg7z3ivwm7qc9jy6xirvay7ah1qyxmm48";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
jdk
|
||||
];
|
||||
buildInputs = [ zlib jdk ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices Foundation ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace makefile \
|
||||
--replace 'g++' 'c++' \
|
||||
--replace 'gcc' 'cc'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
@ -5769,7 +5769,8 @@ with pkgs;
|
||||
avra = callPackage ../development/compilers/avra { };
|
||||
|
||||
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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user