diff --git a/pkgs/development/libraries/zeroc-ice/default.nix b/pkgs/development/libraries/zeroc-ice/default.nix index 29e92d0b6ec..d89fae5c964 100644 --- a/pkgs/development/libraries/zeroc-ice/default.nix +++ b/pkgs/development/libraries/zeroc-ice/default.nix @@ -1,24 +1,29 @@ -{ stdenv, fetchurl, mcpp, bzip2, expat, openssl, db5 }: +{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 }: stdenv.mkDerivation rec { - name = "zeroc-ice-3.5.1"; + name = "zeroc-ice-${version}"; + version = "3.6.0"; - src = fetchurl { - url = "http://www.zeroc.com/download/Ice/3.5/Ice-3.5.1.tar.gz"; - sha256 = "14pk794p0fq3hcp50xmqnf9pp15dggiqhcnsav8xpnka9hcm37lq"; + src = fetchFromGitHub { + owner = "zeroc-ice"; + repo = "ice"; + rev = "v${version}"; + sha256 = "192lhynf369bbrvbb9nldc49n09kyxp8vg8j9d7w5h2c1yxpjgjq"; }; buildInputs = [ mcpp bzip2 expat openssl db5 ]; buildPhase = '' cd cpp - make OPTIMIZE=yes + make -j $NIX_BUILD_CORES OPTIMIZE=yes ''; installPhase = '' - make prefix=$out install + make -j $NIX_BUILD_CORES prefix=$out install ''; + enableParallelBuilding = true; + meta = with stdenv.lib; { homepage = "http://www.zeroc.com/ice.html"; description = "The internet communications engine";