2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, python3
|
|
|
|
, libgee
|
|
|
|
, clutter-gtk
|
|
|
|
, json-glib
|
|
|
|
, libgda
|
|
|
|
, libgpod
|
|
|
|
, libnotify
|
|
|
|
, libpeas
|
|
|
|
, libsoup
|
|
|
|
, zeitgeist
|
|
|
|
, gst_all_1
|
|
|
|
, taglib
|
|
|
|
, libdbusmenu
|
|
|
|
, libsignon-glib
|
|
|
|
, libaccounts-glib
|
|
|
|
, elementary-icon-theme
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-music";
|
|
|
|
version = "5.0.5";
|
|
|
|
|
|
|
|
repoName = "music";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "sha256-3GZoBCu9rF+BnNk9APBzKWO1JYg1XYWwrEvwcjWvYDE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with gst_all_1; [
|
|
|
|
clutter-gtk
|
|
|
|
elementary-icon-theme
|
|
|
|
granite
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gstreamer
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libaccounts-glib
|
|
|
|
libdbusmenu
|
|
|
|
libgda
|
|
|
|
libgee
|
|
|
|
libgpod
|
|
|
|
libnotify
|
|
|
|
libpeas
|
|
|
|
libsignon-glib
|
|
|
|
libsoup
|
|
|
|
taglib
|
|
|
|
zeitgeist
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dplugins=lastfm,audioplayer,cdrom,ipod"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Music player and library designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/music";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|