nixpkgs/pkgs/desktops/gnome/apps/gnome-music/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

113 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, meson
, ninja
, gettext
, fetchurl
, gdk-pixbuf
, tracker
, libxml2
, python3
, libnotify
, wrapGAppsHook4
, libmediaart
, gobject-introspection
, gnome-online-accounts
, grilo
, grilo-plugins
2021-01-17 02:21:50 +00:00
, pkg-config
, gtk4
2020-02-09 00:33:42 +00:00
, pango
, glib
, desktop-file-utils
, appstream-glib
, itstool
, gnome
, gst_all_1
, libsoup
, libadwaita
, gsettings-desktop-schemas
}:
2018-03-15 12:22:33 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "gnome-music";
version = "42.1";
2018-03-15 12:22:33 +00:00
format = "other";
src = fetchurl {
2021-03-21 05:15:43 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "x3R/pqhrVrGK1v+VD/kB5Z7n+sEcaLKmcnr4bq7tgnA=";
};
nativeBuildInputs = [
meson
ninja
gettext
itstool
2021-01-17 02:21:50 +00:00
pkg-config
libxml2
wrapGAppsHook4
desktop-file-utils
appstream-glib
gobject-introspection
];
buildInputs = [
gtk4
2020-02-09 00:33:42 +00:00
pango
glib
libmediaart
gnome-online-accounts
gobject-introspection
gdk-pixbuf
python3
grilo
grilo-plugins
libnotify
libsoup
libadwaita
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
]);
pythonPath = with python3.pkgs; [
pycairo
dbus-python
pygobject3
2018-03-15 12:22:33 +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;
# handle setup hooks better
strictDeps = false;
2018-03-15 12:22:33 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-15 12:22:33 +00:00
packageName = pname;
attrPath = "gnome.${pname}";
2018-03-15 12:22:33 +00:00
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Music";
description = "Music player and management application for the GNOME desktop environment";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}