1 { stdenv, lib, fetchFromGitHub, fetchpatch, mcpp, bzip2, expat, openssl, db5
2 , darwin, libiconv, Security
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2";
17 buildInputs = [ mcpp bzip2 expat openssl db5 ]
18 ++ lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ];
21 sourceRoot=$sourceRoot/cpp
24 prePatch = lib.optional stdenv.isDarwin ''
25 substituteInPlace config/Make.rules.Darwin \
30 # Fixes compilation issues with GCC 8 using one of the patches
31 # provided in https://github.com/zeroc-ice/ice/issues/82
33 url = "https://github.com/zeroc-ice/ice/commit/a6a4981616b669432ff7b588179d6e93694d9e3f.patch";
34 sha256 = "17j5r7gsa3izrm7zln4mrp7l16h532gvmpas0kzglybicbiz7d56";
44 "CONFIGS=${if cpp11 then "cpp11-shared" else "shared"}"
45 "SKIP=slice2py" # provided by a separate package
49 # cannot find -lIceXML (linking bin/transformdb)
50 enableParallelBuilding = false;
52 outputs = [ "out" "bin" "dev" ];
55 mkdir -p $bin $dev/share
57 mv $out/share/Ice-* $dev/share/ice
58 rm -rf $out/share/slice
62 homepage = "http://www.zeroc.com/ice.html";
63 description = "The internet communications engine";
64 license = licenses.gpl2;
65 platforms = platforms.unix;