2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
libxslt,
|
|
|
|
docbook_xsl,
|
|
|
|
gettext,
|
|
|
|
libiconv,
|
|
|
|
makeWrapper,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "xdg-user-dirs";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "https://user-dirs.freedesktop.org/releases/xdg-user-dirs-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
libxslt
|
|
|
|
docbook_xsl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ gettext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
# fallback values need to be last
|
|
|
|
wrapProgram "$out/bin/xdg-user-dirs-update" \
|
|
|
|
--suffix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://freedesktop.org/wiki/Software/xdg-user-dirs";
|
|
|
|
description = "A tool to help manage well known user directories like the desktop folder and the music folder";
|
|
|
|
license = licenses.gpl2;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ donovanglover ];
|
2024-02-29 20:09:43 +00:00
|
|
|
platforms = platforms.unix;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "xdg-user-dirs-update";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|