glib: disable sysprof feature on FreeBSD (#356762)

This commit is contained in:
John Ericson 2024-11-26 20:40:40 -05:00 committed by GitHub
commit 6caec53184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,9 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ buildInputs = [
finalAttrs.setupHook finalAttrs.setupHook
] ++ lib.optionals (!stdenv.hostPlatform.isFreeBSD) [
libsysprof-capture libsysprof-capture
] ++ [
pcre2 pcre2
] ++ lib.optionals (!stdenv.hostPlatform.isWindows) [ ] ++ lib.optionals (!stdenv.hostPlatform.isWindows) [
bash gnum4 # install glib-gettextize and m4 macros for other apps to use bash gnum4 # install glib-gettextize and m4 macros for other apps to use
@ -185,6 +187,7 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [ ] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [
"-Db_lundef=false" "-Db_lundef=false"
"-Dxattr=false" "-Dxattr=false"
"-Dsysprof=disabled" # sysprof-capture does not build on FreeBSD
]; ];
env.NIX_CFLAGS_COMPILE = toString [ env.NIX_CFLAGS_COMPILE = toString [