2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, pantheon
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, python3
|
|
|
|
, libgee
|
|
|
|
, clutter-gtk
|
|
|
|
, json-glib
|
|
|
|
, libgda
|
|
|
|
, libgpod
|
2021-07-16 19:40:57 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnotify
|
|
|
|
, libpeas
|
|
|
|
, libsoup
|
|
|
|
, zeitgeist
|
|
|
|
, gst_all_1
|
|
|
|
, taglib
|
|
|
|
, libdbusmenu
|
|
|
|
, libsignon-glib
|
|
|
|
, libaccounts-glib
|
|
|
|
, elementary-icon-theme
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-music";
|
2021-07-16 19:40:57 +00:00
|
|
|
version = "5.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "music";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2021-07-16 19:40:57 +00:00
|
|
|
sha256 = "13v7rii9ardyd661s6d4hvvs4ig44v7s3qd1bx7imaigr72gg58b";
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2021-07-16 19:40:57 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Music player and library designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/music";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|