1{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 }:
2
3stdenv.mkDerivation rec {
4 name = "zeroc-ice-${version}";
5 version = "3.6.1";
6
7 src = fetchFromGitHub {
8 owner = "zeroc-ice";
9 repo = "ice";
10 rev = "v${version}";
11 sha256 = "044511zbhwiach1867r3xjz8i4931wn7c1l3nz4kcpgks16kqhhz";
12 };
13
14 buildInputs = [ mcpp bzip2 expat openssl db5 ];
15
16 buildPhase = ''
17 cd cpp
18 make -j $NIX_BUILD_CORES OPTIMIZE=yes
19 '';
20
21 installPhase = ''
22 make -j $NIX_BUILD_CORES prefix=$out install
23 '';
24
25 enableParallelBuilding = true;
26
27 meta = with stdenv.lib; {
28 homepage = "http://www.zeroc.com/ice.html";
29 description = "The internet communications engine";
30 license = licenses.gpl2;
31 platforms = platforms.unix;
32 };
33}