folly: reorder attributes

(cherry picked from commit 593f78887a)
(cherry picked from commit 2fcd56c3cd)
This commit is contained in:
Emily 2024-11-13 13:40:54 +00:00 committed by Vladimír Čunát
parent 685fd2c8c8
commit 80dd0dc4e6
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

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