2015-06-27 20:38:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 }:
|
2014-01-31 01:41:58 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-27 20:38:21 +01:00
|
|
|
name = "zeroc-ice-${version}";
|
2015-10-02 20:48:51 +01:00
|
|
|
version = "3.6.1";
|
2014-01-31 01:41:58 +00:00
|
|
|
|
2015-06-27 20:38:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeroc-ice";
|
|
|
|
repo = "ice";
|
|
|
|
rev = "v${version}";
|
2015-10-02 20:48:51 +01:00
|
|
|
sha256 = "044511zbhwiach1867r3xjz8i4931wn7c1l3nz4kcpgks16kqhhz";
|
2014-01-31 01:41:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mcpp bzip2 expat openssl db5 ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd cpp
|
2015-06-27 20:38:21 +01:00
|
|
|
make -j $NIX_BUILD_CORES OPTIMIZE=yes
|
2014-01-31 01:41:58 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-06-27 20:38:21 +01:00
|
|
|
make -j $NIX_BUILD_CORES prefix=$out install
|
2014-01-31 01:41:58 +00:00
|
|
|
'';
|
|
|
|
|
2015-06-27 20:38:21 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-01-31 01:41:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.zeroc.com/ice.html";
|
|
|
|
description = "The internet communications engine";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|