tracker-miners: add darwin support

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