diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/zeroc-ice')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix | 41 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/zeroc-ice/makefile.patch | 9 |
2 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix b/nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix new file mode 100644 index 000000000000..a2e60eacf989 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 +, darwin, libiconv, Security +}: + +stdenv.mkDerivation rec { + pname = "zeroc-ice"; + version = "3.6.3"; + + src = fetchFromGitHub { + owner = "zeroc-ice"; + repo = "ice"; + rev = "v${version}"; + sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2"; + }; + + patches = [ ./makefile.patch ]; + + buildInputs = [ mcpp bzip2 expat openssl db5 ] + ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ]; + + postUnpack = '' + sourceRoot=$sourceRoot/cpp + ''; + + prePatch = '' + substituteInPlace config/Make.rules.Darwin \ + --replace xcrun "" + ''; + + makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ]; + + # cannot find -lIceXML (linking bin/transformdb) + #enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = http://www.zeroc.com/ice.html; + description = "The internet communications engine"; + license = licenses.gpl2; + platforms = platforms.unix; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/zeroc-ice/makefile.patch b/nixpkgs/pkgs/development/libraries/zeroc-ice/makefile.patch new file mode 100644 index 000000000000..6955bcd0a6d7 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/zeroc-ice/makefile.patch @@ -0,0 +1,9 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -77,4 +77,6 @@ FreezeScript: Freeze + Glacier2 IceGridLib Glacier2CryptPermissionsVerifier: Glacier2Lib + ++Glacier2: IceSSL ++ + IcePatch2: IcePatch2Lib + |