lol

zroc-ice: cleanup and fix darwin build

+15 -8
+12 -7
pkgs/development/libraries/zeroc-ice/default.nix
··· 1 - { stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 }: 1 + { stdenv, fetchFromGitHub, mcpp, bzip2, expat, openssl, db5 2 + , darwin, libiconv, Security 3 + }: 2 4 3 5 stdenv.mkDerivation rec { 4 6 name = "zeroc-ice-${version}"; ··· 11 13 sha256 = "05xympbns32aalgcfcpxwfd7bvg343f16xpg6jv5s335ski3cjy2"; 12 14 }; 13 15 14 - buildInputs = [ mcpp bzip2 expat openssl db5 ]; 16 + buildInputs = [ mcpp bzip2 expat openssl db5 ] 17 + ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools libiconv Security ]; 15 18 16 - buildPhase = '' 17 - cd cpp 18 - make -j $NIX_BUILD_CORES OPTIMIZE=yes 19 + postUnpack = '' 20 + sourceRoot=$sourceRoot/cpp 19 21 ''; 20 22 21 - installPhase = '' 22 - make -j $NIX_BUILD_CORES prefix=$out install 23 + prePatch = '' 24 + substituteInPlace config/Make.rules.Darwin \ 25 + --replace xcrun "" 23 26 ''; 27 + 28 + makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ]; 24 29 25 30 enableParallelBuilding = true; 26 31
+3 -1
pkgs/top-level/all-packages.nix
··· 17208 17208 17209 17209 zed = callPackage ../applications/editors/zed { }; 17210 17210 17211 - zeroc_ice = callPackage ../development/libraries/zeroc-ice { }; 17211 + zeroc_ice = callPackage ../development/libraries/zeroc-ice { 17212 + inherit (darwin.apple_sdk.frameworks) Security; 17213 + }; 17212 17214 17213 17215 zexy = callPackage ../applications/audio/pd-plugins/zexy { }; 17214 17216