Skip to content

Commit c355c9a

Browse files
committed
xdg-user-dirs: 0.18 -> 0.19
1 parent fb7944c commit c355c9a

File tree

2 files changed

+21
-39
lines changed

2 files changed

+21
-39
lines changed

pkgs/by-name/xd/xdg-user-dirs/gettext-0.25.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.

pkgs/by-name/xd/xdg-user-dirs/package.nix

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,51 @@
11
{
22
lib,
33
stdenv,
4-
autoreconfHook,
54
fetchurl,
6-
libxslt,
5+
makeWrapper,
76
docbook_xsl,
87
docbook_xml_dtd_43,
98
gettext,
10-
makeWrapper,
9+
libiconv,
10+
libintl,
11+
libxslt,
12+
meson,
13+
ninja,
1114
}:
1215

1316
stdenv.mkDerivation (finalAttrs: {
1417
pname = "xdg-user-dirs";
15-
version = "0.18";
18+
version = "0.19";
1619

1720
src = fetchurl {
18-
url = "https://user-dirs.freedesktop.org/releases/xdg-user-dirs-${finalAttrs.version}.tar.gz";
19-
hash = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw=";
21+
url = "https://user-dirs.freedesktop.org/releases/xdg-user-dirs-${finalAttrs.version}.tar.xz";
22+
hash = "sha256-6S3rkpwQ1LKTKTl6+KJYUQEkf35hd6xvHSjoITDtjBk=";
2023
};
2124

22-
patches = [
23-
# https://gitlab.freedesktop.org/xdg/xdg-user-dirs/-/merge_requests/16
24-
./gettext-0.25.patch
25-
];
26-
27-
postPatch = ''
28-
substituteInPlace Makefile.am \
29-
--replace-fail 'libraries = $(LIBINTL)' 'libraries = $(LIBICONV) $(LIBINTL)'
30-
'';
31-
3225
nativeBuildInputs = [
33-
autoreconfHook
3426
makeWrapper
27+
meson
28+
ninja
29+
gettext
3530
libxslt
3631
docbook_xsl
3732
docbook_xml_dtd_43
38-
]
39-
++ lib.optionals stdenv.hostPlatform.isDarwin [ gettext ];
33+
];
34+
35+
buildInputs = [
36+
libiconv
37+
libintl
38+
];
4039

4140
NIX_LDFLAGS = if stdenv.isDarwin then "-liconv" else null;
4241

4342
preFixup = ''
4443
# fallback values need to be last
4544
wrapProgram "$out/bin/xdg-user-dirs-update" \
4645
--suffix XDG_CONFIG_DIRS : "$out/etc/xdg"
46+
47+
substituteInPlace "$out/lib/systemd/user/xdg-user-dirs.service" \
48+
--replace-fail "/usr/bin/xdg-user-dirs-update" "$out/bin/xdg-user-dirs-update"
4749
'';
4850

4951
meta = {

0 commit comments

Comments
 (0)