diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2024-02-11 13:01:53 -0600 |
---|---|---|
committer | Travis A. Everett <travis.a.everett@gmail.com> | 2024-02-12 10:35:14 -0600 |
commit | 28bd8790ade0c8efaa85b022e5ab28ed66cf66ec (patch) | |
tree | 5657ffc3b18015bbce7010f22835eebbeada90c2 /pkgs/tools/X11 | |
parent | 92682867ac34c886b1e30301ae793e9349dc8250 (diff) |
xdg-user-dirs: fix darwin builds
A recent update to xdg-utils added xdg-user-dirs as a dep. Since then we've had a few reports of people running macOS with xdg-utils in their system for one reason or another getting a failure on xdg-user-dirs. I'm not sure it makes high-level sense to use it on macOS, but it was easy to get it to build...
Diffstat (limited to 'pkgs/tools/X11')
-rw-r--r-- | pkgs/tools/X11/xdg-user-dirs/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/tools/X11/xdg-user-dirs/default.nix b/pkgs/tools/X11/xdg-user-dirs/default.nix index c267a8386b35b..f988f3cfe9758 100644 --- a/pkgs/tools/X11/xdg-user-dirs/default.nix +++ b/pkgs/tools/X11/xdg-user-dirs/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, libxslt, docbook_xsl, makeWrapper }: +{ lib, stdenv, fetchurl, libxslt, docbook_xsl, gettext, libiconv, makeWrapper }: stdenv.mkDerivation rec { pname = "xdg-user-dirs"; @@ -9,7 +9,9 @@ stdenv.mkDerivation rec { sha256 = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw="; }; - nativeBuildInputs = [ makeWrapper libxslt docbook_xsl ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; + + nativeBuildInputs = [ makeWrapper libxslt docbook_xsl ] ++ lib.optionals stdenv.isDarwin [ gettext ]; preFixup = '' # fallback values need to be last @@ -22,6 +24,6 @@ stdenv.mkDerivation rec { description = "A tool to help manage well known user directories like the desktop folder and the music folder"; license = licenses.gpl2; maintainers = with maintainers; [ ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |