mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 07:30:04 +03: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:
parent
4420745f0a
commit
00b9fc64d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user