xdg-user-dirs: hack-fix build on darwin

https://hydra.nixos.org/build/302010661/nixlog/3/tail
This commit is contained in:
Vladimír Čunát 2025-07-13 09:28:26 +02:00
parent cd80d7e3fb
commit 11c800de02
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -37,6 +37,8 @@ stdenv.mkDerivation (finalAttrs: {
docbook_xml_dtd_43
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];
NIX_LDFLAGS = if stdenv.isDarwin then "-liconv" else null;
preFixup = ''
# fallback values need to be last
wrapProgram "$out/bin/xdg-user-dirs-update" \