lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

serf: update scons patch, enable kerberos on darwin

NIX_CFLAGS_COMPILE set by the old patch is long not recognized by cc wrappers.

+30 -17
+18 -17
pkgs/development/libraries/serf/default.nix
··· 13 13 buildInputs = [ apr scons openssl aprutil zlib libiconv ] 14 14 ++ stdenv.lib.optional (!stdenv.isCygwin) kerberos; 15 15 16 - postPatch = '' 17 - sed -e '/^env[.]Append(BUILDERS/ienv.Append(ENV={"PATH":os.environ["PATH"]})' \ 18 - -e '/^env[.]Append(BUILDERS/ienv.Append(ENV={"NIX_CFLAGS_COMPILE":os.environ["NIX_CFLAGS_COMPILE"]})' \ 19 - -e '/^env[.]Append(BUILDERS/ienv.Append(ENV={"NIX_LDFLAGS":os.environ["NIX_LDFLAGS"]})' \ 20 - -i SConstruct 21 - ''; 16 + patches = [ ./scons.patch ]; 22 17 23 18 buildPhase = '' 24 - scons PREFIX="$out" OPENSSL="${openssl}" ZLIB="${zlib}" APR="$(echo "${apr.dev}"/bin/*-config)" CFLAGS="-I${zlib.dev}/include" \ 25 - LINKFLAGS="-L${zlib.out}/lib -L${openldap}/lib -L${libiconv}/lib" \ 26 - APU="$(echo "${aprutil.dev}"/bin/*-config)" CC=$CC ${ 27 - if (stdenv.isDarwin || stdenv.isCygwin) then "" else "GSSAPI=\"${kerberos.dev}\"" 28 - } 19 + scons \ 20 + -j $NIX_BUILD_CORES \ 21 + APR="$(echo ${apr.dev}/bin/*-config)" \ 22 + APU="$(echo ${aprutil.dev}/bin/*-config)" \ 23 + CC=$CC \ 24 + OPENSSL=${openssl} \ 25 + PREFIX="$out" \ 26 + ZLIB=${zlib} \ 27 + ${ 28 + if stdenv.isCygwin then "" else "GSSAPI=${kerberos.dev}" 29 + } 29 30 ''; 30 31 31 - NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-L/usr/lib"; 32 - 33 32 installPhase = '' 34 33 scons install 35 34 ''; 36 35 37 - meta = { 36 + enableParallelBuilding = true; 37 + 38 + meta = with stdenv.lib; { 38 39 description = "HTTP client library based on APR"; 39 - license = stdenv.lib.licenses.asl20; 40 - maintainers = [stdenv.lib.maintainers.raskin]; 41 - platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 40 + license = licenses.asl20; 41 + maintainers = with maintainers; [ orivej raskin ]; 42 + platforms = platforms.linux ++ platforms.darwin; 42 43 }; 43 44 }
+12
pkgs/development/libraries/serf/scons.patch
··· 1 + diff --git a/SConstruct b/SConstruct 2 + index 4358a23..0d862e7 100644 3 + --- a/SConstruct 4 + +++ b/SConstruct 5 + @@ -155,6 +155,7 @@ if sys.platform == 'win32': 6 + env = Environment(variables=opts, 7 + tools=('default', 'textfile',), 8 + CPPPATH=['.', ], 9 + + ENV=os.environ, 10 + ) 11 + 12 + env.Append(BUILDERS = {