open5gs: fix build on darwin (#445075)

authored by Aleksana and committed by GitHub dab749a0 bd91703f

+7 -9
+7 -9
pkgs/by-name/op/open5gs/package.nix
··· 21 curl, 22 libtins, 23 mongosh, 24 }: 25 26 stdenv.mkDerivation (finalAttrs: { ··· 75 libyaml 76 libmicrohttpd 77 libgcrypt 78 - lksctp-tools 79 libidn 80 openssl 81 curl 82 libtins 83 gnutls 84 libnghttp2.dev 85 ]; 86 - 87 - # For subproject 88 - env = { 89 - NIX_CFLAGS_COMPILE = toString [ 90 - "-Wno-error=array-bounds" 91 - "-Wno-error=stringop-overflow" 92 - ]; 93 - }; 94 95 preConfigure = '' 96 cp -R --no-preserve=mode,ownership ${finalAttrs.diameter} subprojects/freeDiameter
··· 21 curl, 22 libtins, 23 mongosh, 24 + usrsctp, 25 }: 26 27 stdenv.mkDerivation (finalAttrs: { ··· 76 libyaml 77 libmicrohttpd 78 libgcrypt 79 libidn 80 openssl 81 curl 82 libtins 83 gnutls 84 libnghttp2.dev 85 + ] 86 + ++ lib.optionals stdenv.isLinux [ 87 + lksctp-tools 88 + ] 89 + ++ lib.optionals (!stdenv.isLinux) [ 90 + usrsctp 91 ]; 92 93 preConfigure = '' 94 cp -R --no-preserve=mode,ownership ${finalAttrs.diameter} subprojects/freeDiameter