1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

gnome-obfuscate: use gettext from nixpkgs

The vendored gettext fails to build with clang 16 on Darwin. The gettext in nixpkgs works.
This commit is contained in:
Randy Eckenrode 2024-07-20 00:35:17 -04:00 committed by Francesco Gazzetta
parent 4420745f0a
commit 00b9fc64d8

View file

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitLab
, buildPackages
, cargo
, gettext
, meson
@ -36,6 +37,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-9lrxK2psdIPGsOC6p8T+3AGPrX6PjrK9mFirdJqBSMM=";
};
env = lib.optionalAttrs stdenv.isDarwin {
# Set the location to gettext to ensure the nixpkgs one on Darwin instead of the vendored one.
# The vendored gettext does not build with clang 16.
GETTEXT_BIN_DIR = "${lib.getBin buildPackages.gettext}/bin";
GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
};
nativeBuildInputs = [
gettext
meson