at 18.09-beta 40 lines 948 B view raw
1{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 2, darwin, libiconv, Security 3}: 4 5stdenv.mkDerivation rec { 6 name = "zeroc-ice-${version}"; 7 version = "3.6.3"; 8 9 src = fetchFromGitHub { 10 owner = "zeroc-ice"; 11 repo = "ice"; 12 rev = "v${version}"; 13 sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2"; 14 }; 15 16 patches = [ ./makefile.patch ]; 17 18 buildInputs = [ mcpp bzip2 expat openssl db5 ] 19 ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ]; 20 21 postUnpack = '' 22 sourceRoot=$sourceRoot/cpp 23 ''; 24 25 prePatch = '' 26 substituteInPlace config/Make.rules.Darwin \ 27 --replace xcrun "" 28 ''; 29 30 makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ]; 31 32 enableParallelBuilding = true; 33 34 meta = with stdenv.lib; { 35 homepage = http://www.zeroc.com/ice.html; 36 description = "The internet communications engine"; 37 license = licenses.gpl2; 38 platforms = platforms.unix; 39 }; 40}