Skip to content

Commit

Permalink
zroc-ice: cleanup and fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 21, 2017
1 parent a3ba600 commit 1ae204d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
19 changes: 12 additions & 7 deletions pkgs/development/libraries/zeroc-ice/default.nix
@@ -1,4 +1,6 @@
{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 }:
{ stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5
, darwin, libiconv, Security
}:

stdenv.mkDerivation rec {
name = "zeroc-ice-${version}";
Expand All @@ -11,17 +13,20 @@ stdenv.mkDerivation rec {
sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2";
};

buildInputs = [ mcpp bzip2 expat openssl db5 ];
buildInputs = [ mcpp bzip2 expat openssl db5 ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ];

buildPhase = ''
cd cpp
make -j $NIX_BUILD_CORES OPTIMIZE=yes
postUnpack = ''
sourceRoot=$sourceRoot/cpp
'';

installPhase = ''
make -j $NIX_BUILD_CORES prefix=$out install
prePatch = ''
substituteInPlace config/Make.rules.Darwin \
--replace xcrun ""
'';

makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ];

enableParallelBuilding = true;

meta = with stdenv.lib; {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -17208,7 +17208,9 @@ with pkgs;

zed = callPackage ../applications/editors/zed { };

zeroc_ice = callPackage ../development/libraries/zeroc-ice { };
zeroc_ice = callPackage ../development/libraries/zeroc-ice {
inherit (darwin.apple_sdk.frameworks) Security;
};

zexy = callPackage ../applications/audio/pd-plugins/zexy { };

Expand Down

0 comments on commit 1ae204d

Please sign in to comment.