tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tracker-miners: add darwin support
Weijia Wang
3 years ago
b34ed334
ada79f07
+35
-7
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
totem-pl-parser
default.nix
tracker-miners
default.nix
+10
-2
pkgs/development/libraries/totem-pl-parser/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
1
1
+
{ lib, stdenv, fetchpatch, fetchurl, meson, ninja, pkg-config, gettext, libxml2, gobject-introspection, gnome, glib }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "totem-pl-parser";
···
8
8
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
9
9
sha256 = "wN8PaNXPnX2kPIHH8T8RFYNYNo+Ywi1Hci870EvTrBw=";
10
10
};
11
11
+
12
12
+
patches = [
13
13
+
# Upstream MR: https://gitlab.gnome.org/GNOME/totem-pl-parser/-/merge_requests/46
14
14
+
(fetchpatch {
15
15
+
url = "https://gitlab.gnome.org/GNOME/totem-pl-parser/-/commit/f4f69c9b99095416aaed18a73f7486ad9eb04aa9.patch";
16
16
+
sha256 = "sha256-Uya5fgFgauv5rIpVK3CDGCieyMus7VjcLMMe/vQ2WWY=";
17
17
+
})
18
18
+
];
11
19
12
20
passthru = {
13
21
updateScript = gnome.updateScript {
···
30
38
description = "Simple GObject-based library to parse and save a host of playlist formats";
31
39
maintainers = teams.gnome.members;
32
40
license = licenses.lgpl2;
33
33
-
platforms = platforms.linux;
41
41
+
platforms = platforms.unix;
34
42
};
35
43
}
+25
-5
pkgs/development/libraries/tracker-miners/default.nix
···
1
1
{ stdenv
2
2
, lib
3
3
, fetchurl
4
4
+
, fetchpatch
4
5
, asciidoc
5
6
, docbook-xsl-nons
6
7
, docbook_xml_dtd_45
···
43
44
, taglib
44
45
, upower
45
46
, totem-pl-parser
47
47
+
, e2fsprogs
46
48
}:
47
49
48
50
stdenv.mkDerivation rec {
···
54
56
sha256 = "Pt3G0nLAKWn6TCwV360MSddtAh8aJ+xwi2m+gCU1PJQ=";
55
57
};
56
58
59
59
+
# TODO: remove me on 3.4.0
60
60
+
patches = [
61
61
+
(fetchpatch {
62
62
+
url = "https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/cc655ba0f95022cf35bc6d44cb5155788fee2e24.patch";
63
63
+
sha256 = "sha256-a85ygtabpkruiDgKbseQxYbFIAQlVDhs3eWkbStJjKs=";
64
64
+
})
65
65
+
(fetchpatch {
66
66
+
url = "https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/9e613ceb37ec41fd1cd88c3d539e3ee03e8f6ba6.patch";
67
67
+
sha256 = "sha256-ht7EfZztyl0st0Sv7H92Q37vwXY4T61GQm9WJ8IxTTg=";
68
68
+
})
69
69
+
];
70
70
+
57
71
nativeBuildInputs = [
58
72
asciidoc
59
73
docbook-xsl-nons
···
72
86
buildInputs = [
73
87
bzip2
74
88
dbus
75
75
-
evolution-data-server
76
89
exempi
77
90
giflib
78
91
glib
···
95
108
libjpeg
96
109
libosinfo
97
110
libpng
98
98
-
libseccomp
99
111
libsoup
100
112
libtiff
101
113
libuuid
102
114
libxml2
103
103
-
networkmanager
104
115
poppler
105
105
-
systemd
106
116
taglib
117
117
+
] ++ lib.optionals stdenv.isLinux [
118
118
+
evolution-data-server
119
119
+
libseccomp
120
120
+
networkmanager
121
121
+
systemd
107
122
upower
123
123
+
] ++ lib.optionals stdenv.isDarwin [
124
124
+
e2fsprogs
108
125
];
109
126
110
127
mesonFlags = [
···
115
132
# security issue since then. Despite a patch now being availab, we're opting
116
133
# to be safe due to the general state of the project
117
134
"-Dminer_rss=false"
135
135
+
] ++ lib.optionals (!stdenv.isLinux) [
136
136
+
"-Dnetwork_manager=disabled"
137
137
+
"-Dsystemd_user_services=false"
118
138
];
119
139
120
140
postInstall = ''
···
132
152
description = "Desktop-neutral user information store, search tool and indexer";
133
153
maintainers = teams.gnome.members;
134
154
license = licenses.gpl2Plus;
135
135
-
platforms = platforms.linux;
155
155
+
platforms = platforms.unix;
136
156
};
137
157
}