folly: reorder attributes

(cherry picked from commit 593f78887a)
(cherry picked from commit 2fcd56c3cd922290cf1347fae8cf2f46df9fbbf4)
This commit is contained in:
Emily
2024-11-30 15:11:12 +01:00
committed by Vladimír Čunát
parent 685fd2c8c8
commit 80dd0dc4e6
+9 -9
View File
@@ -31,6 +31,12 @@ stdenv.mkDerivation (finalAttrs: {
pname = "folly";
version = "2024.03.11.00";
# split outputs to reduce downstream closure sizes
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "facebook";
repo = "folly";
@@ -69,11 +75,6 @@ stdenv.mkDerivation (finalAttrs: {
# jemalloc headers are required in include/folly/portability/Malloc.h
propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc;
env.NIX_CFLAGS_COMPILE = toString [
"-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}"
"-fpermissive"
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
@@ -87,10 +88,9 @@ stdenv.mkDerivation (finalAttrs: {
"-DCMAKE_INSTALL_LIBDIR=lib"
];
# split outputs to reduce downstream closure sizes
outputs = [
"out"
"dev"
env.NIX_CFLAGS_COMPILE = toString [
"-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}"
"-fpermissive"
];
# patch prefix issues again