forked from mirrors/nixpkgs
d0888d1503
Some packages just can't handle them #44767. It was tempting to try to abstract this in some way, but I didn't do that ATM.
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5
|
|
, darwin, libiconv, Security
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "zeroc-ice-${version}";
|
|
version = "3.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zeroc-ice";
|
|
repo = "ice";
|
|
rev = "v${version}";
|
|
sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2";
|
|
};
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
buildInputs = [ mcpp bzip2 expat openssl db5 ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ];
|
|
|
|
postUnpack = ''
|
|
sourceRoot=$sourceRoot/cpp
|
|
'';
|
|
|
|
prePatch = ''
|
|
substituteInPlace config/Make.rules.Darwin \
|
|
--replace xcrun ""
|
|
'';
|
|
|
|
preConfigure = ''
|
|
CC=${stdenv.cc.targetPrefix}cc
|
|
CXX=${stdenv.cc.targetPrefix}c++
|
|
'';
|
|
|
|
makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.zeroc.com/ice.html;
|
|
description = "The internet communications engine";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|