From 572e623305c039e3af896d10d73d4e8597ff21dc Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Sat, 2 Nov 2024 00:23:46 -0700 Subject: [PATCH] glib: disable sysprof feature on FreeBSD sysprof-capture doesn't build on FreeBSD. Don't make it try. --- pkgs/development/libraries/glib/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index d12b1be1b5b4..e8a44bde7edb 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -126,7 +126,9 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ finalAttrs.setupHook + ] ++ lib.optionals (!stdenv.hostPlatform.isFreeBSD) [ libsysprof-capture + ] ++ [ pcre2 ] ++ lib.optionals (!stdenv.hostPlatform.isWindows) [ 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 [ "-Db_lundef=false" "-Dxattr=false" + "-Dsysprof=disabled" # sysprof-capture does not build on FreeBSD ]; env.NIX_CFLAGS_COMPILE = toString [