2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-19 14:04:49 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, fetchurl
|
|
|
|
, gdk-pixbuf
|
|
|
|
, tracker
|
|
|
|
, libxml2
|
|
|
|
, python3
|
|
|
|
, libnotify
|
2022-04-25 14:12:13 +00:00
|
|
|
, wrapGAppsHook4
|
2019-11-19 14:04:49 +00:00
|
|
|
, libmediaart
|
|
|
|
, gobject-introspection
|
|
|
|
, gnome-online-accounts
|
|
|
|
, grilo
|
|
|
|
, grilo-plugins
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2022-02-27 11:09:34 +00:00
|
|
|
, gtk4
|
2020-02-09 00:33:42 +00:00
|
|
|
, pango
|
2019-11-19 14:04:49 +00:00
|
|
|
, glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, itstool
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2019-11-19 14:04:49 +00:00
|
|
|
, gst_all_1
|
|
|
|
, libsoup
|
2022-02-27 11:09:34 +00:00
|
|
|
, libadwaita
|
2019-11-19 14:04:49 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2018-03-15 12:22:33 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "gnome-music";
|
2022-04-25 14:12:13 +00:00
|
|
|
version = "42.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2018-03-15 12:22:33 +00:00
|
|
|
format = "other";
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
src = fetchurl {
|
2021-03-21 05:15:43 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-04-25 14:12:13 +00:00
|
|
|
sha256 = "x3R/pqhrVrGK1v+VD/kB5Z7n+sEcaLKmcnr4bq7tgnA=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-11-19 14:04:49 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
itstool
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-11-19 14:04:49 +00:00
|
|
|
libxml2
|
2022-04-25 14:12:13 +00:00
|
|
|
wrapGAppsHook4
|
2019-11-19 14:04:49 +00:00
|
|
|
desktop-file-utils
|
|
|
|
appstream-glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-27 11:09:34 +00:00
|
|
|
gtk4
|
2020-02-09 00:33:42 +00:00
|
|
|
pango
|
2019-11-19 14:04:49 +00:00
|
|
|
glib
|
|
|
|
libmediaart
|
|
|
|
gnome-online-accounts
|
|
|
|
gobject-introspection
|
|
|
|
gdk-pixbuf
|
|
|
|
python3
|
|
|
|
grilo
|
|
|
|
grilo-plugins
|
|
|
|
libnotify
|
|
|
|
libsoup
|
2022-02-27 11:09:34 +00:00
|
|
|
libadwaita
|
2019-11-19 14:04:49 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
tracker
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
2022-03-29 10:23:44 +00:00
|
|
|
gst-libav
|
2019-11-19 14:04:49 +00:00
|
|
|
]);
|
|
|
|
|
2021-10-13 17:07:51 +00:00
|
|
|
pythonPath = with python3.pkgs; [
|
2019-11-19 14:04:49 +00:00
|
|
|
pycairo
|
|
|
|
dbus-python
|
|
|
|
pygobject3
|
2018-03-15 12:22:33 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-10-13 18:11:08 +00:00
|
|
|
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2018-03-15 12:22:33 +00:00
|
|
|
doCheck = false;
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2020-06-10 01:06:10 +00:00
|
|
|
# handle setup hooks better
|
|
|
|
strictDeps = false;
|
|
|
|
|
2018-03-15 12:22:33 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-15 12:22:33 +00:00
|
|
|
packageName = pname;
|
2021-05-07 21:18:14 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-15 12:22:33 +00:00
|
|
|
};
|
|
|
|
};
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-19 14:04:49 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Music";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Music player and management application for the GNOME desktop environment";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2019-11-19 14:04:49 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|