diff --git a/pkgs/development/libraries/gamin/default.nix b/pkgs/development/libraries/gamin/default.nix index ffc1596a72b..f8c44fc0a08 100644 --- a/pkgs/development/libraries/gamin/default.nix +++ b/pkgs/development/libraries/gamin/default.nix @@ -8,5 +8,9 @@ stdenv.mkDerivation rec { }; buildInputs = [python pkgconfig glib]; - configureFlags = "--enable-shared --disable-static --disable-debug --with-python=${python}"; + + # `_GNU_SOURCE' is needed, e.g., to get `struct ucred' from + # with Glibc 2.9. + configureFlags = "--enable-shared --disable-static --disable-debug" + + " --with-python=${python} CPPFLAGS=-D_GNU_SOURCE"; }