nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix

39 lines
913 B
Nix
Raw Normal View History

2017-09-21 18:05:29 +00:00
{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5
, darwin, libiconv, Security
}:
2014-01-31 01:41:58 +00:00
stdenv.mkDerivation rec {
2015-06-27 19:38:21 +00:00
name = "zeroc-ice-${version}";
2016-10-13 01:13:26 +00:00
version = "3.6.3";
2014-01-31 01:41:58 +00:00
2015-06-27 19:38:21 +00:00
src = fetchFromGitHub {
owner = "zeroc-ice";
repo = "ice";
rev = "v${version}";
2016-10-13 01:13:26 +00:00
sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2";
2014-01-31 01:41:58 +00:00
};
2017-09-21 18:05:29 +00:00
buildInputs = [ mcpp bzip2 expat openssl db5 ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ];
2014-01-31 01:41:58 +00:00
2017-09-21 18:05:29 +00:00
postUnpack = ''
sourceRoot=$sourceRoot/cpp
2014-01-31 01:41:58 +00:00
'';
2017-09-21 18:05:29 +00:00
prePatch = ''
substituteInPlace config/Make.rules.Darwin \
--replace xcrun ""
2014-01-31 01:41:58 +00:00
'';
2017-09-21 18:05:29 +00:00
makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ];
2015-06-27 19:38:21 +00:00
enableParallelBuilding = true;
2014-01-31 01:41:58 +00:00
meta = with stdenv.lib; {
homepage = http://www.zeroc.com/ice.html;
2014-01-31 01:41:58 +00:00
description = "The internet communications engine";
license = licenses.gpl2;
platforms = platforms.unix;
};
}