···1010 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include"
1111 '';
12121313- # on next rebuild, this can be replaced with optionals; for now set to null to avoid
1414- # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
1515- patches = if stdenv.hostPlatform.isMusl then [
1313+ patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
1614 ../../libcxx-0001-musl-hacks.patch
1717- ] else null;
1515+ ];
18161917 prePatch = ''
2018 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
···1010 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include"
1111 '';
12121313- # on next rebuild, this can be replaced with optionals; for now set to null to avoid
1414- # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
1515- patches = if stdenv.hostPlatform.isMusl then [
1313+ patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
1614 ../../libcxx-0001-musl-hacks.patch
1717- ] else null;
1515+ ];
18161917 prePatch = ''
2018 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
+4-10
pkgs/development/libraries/libdaemon/default.nix
···11{stdenv, fetchurl}:
2233-stdenv.mkDerivation (rec {
33+stdenv.mkDerivation rec {
44 name = "libdaemon-0.14";
5566 src = fetchurl {
77 url = "${meta.homepage}/${name}.tar.gz";
88 sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx";
99 };
1010+1111+ patches = [ ./fix-includes.patch ];
10121113 configureFlags = [ "--disable-lynx" ]
1214 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
···16181719 meta = {
1820 description = "Lightweight C library that eases the writing of UNIX daemons";
1919-2021 homepage = http://0pointer.de/lennart/projects/libdaemon/;
2121-2222 license = stdenv.lib.licenses.lgpl2Plus;
2323-2423 platforms = stdenv.lib.platforms.unix;
2525- maintainers = [ ];
2624 };
2727-} // stdenv.lib.optionalAttrs stdenv.hostPlatform.isMusl {
2828- # This patch should be applied unconditionally, but doing so will cause mass rebuild.
2929- patches = ./fix-includes.patch;
3030-})
3131-2525+}
+3-4
pkgs/development/libraries/newt/default.nix
···2222 unset CPP
2323 '';
24242525- # Use `lib.optionalString` next mass rebuild.
2626- makeFlags = if stdenv.buildPlatform == stdenv.hostPlatform
2727- then null
2828- else "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
2525+ makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
2626+ "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
2727+ ];
29283029 meta = with stdenv.lib; {
3130 homepage = https://fedorahosted.org/newt/;