File tree Expand file tree Collapse file tree 2 files changed +21
-40
lines changed
pkgs/by-name/xd/xdg-user-dirs Expand file tree Collapse file tree 2 files changed +21
-40
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 lib ,
33 stdenv ,
4- autoreconfHook ,
54 fetchurl ,
5+ meson ,
6+ ninja ,
7+ makeWrapper ,
8+ gettext ,
9+ libiconv ,
10+ libintl ,
611 libxslt ,
712 docbook_xsl ,
813 docbook_xml_dtd_43 ,
9- gettext ,
10- makeWrapper ,
1114} :
1215
1316stdenv . 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+ meson . setupHook
29+ ninja
30+ gettext
3531 libxslt
3632 docbook_xsl
3733 docbook_xml_dtd_43
38- ]
39- ++ lib . optionals stdenv . hostPlatform . isDarwin [ gettext ] ;
34+ ] ;
4035
41- NIX_LDFLAGS = if stdenv . isDarwin then "-liconv" else null ;
36+ buildInputs = [
37+ libiconv
38+ libintl
39+ ] ;
4240
4341 preFixup = ''
4442 # fallback values need to be last
4543 wrapProgram "$out/bin/xdg-user-dirs-update" \
4644 --suffix XDG_CONFIG_DIRS : "$out/etc/xdg"
45+
46+ substituteInPlace "$out/lib/systemd/user/xdg-user-dirs.service" \
47+ --replace-fail "/usr/bin/xdg-user-dirs-update" "$out/bin/xdg-user-dirs-update"
4748 '' ;
4849
4950 meta = {
You can’t perform that action at this time.
0 commit comments