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