Merge pull request #288313 from abathur/xdg_user_dirs_darwin

This commit is contained in:
Sandro 2024-02-13 11:09:04 +01:00 committed by GitHub
commit a1c9432d54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, libxslt, docbook_xsl, makeWrapper }: { lib, stdenv, fetchurl, libxslt, docbook_xsl, gettext, libiconv, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xdg-user-dirs"; pname = "xdg-user-dirs";
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw="; 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 = '' preFixup = ''
# fallback values need to be last # 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"; description = "A tool to help manage well known user directories like the desktop folder and the music folder";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }