3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/zeroc-ice/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

42 lines
990 B
Nix

{ 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;
};
}