2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchpatch
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
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-09-22 15:38:15 +00:00
|
|
|
version = "5.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "music";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2021-09-22 15:38:15 +00:00
|
|
|
sha256 = "1wqsn4ss9acg0scaqpg514ll2dj3bl71wly4mm79qkinhy30yv9n";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream code not respecting our localedir
|
|
|
|
# https://github.com/elementary/music/pull/648
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/music/commit/aea97103d59afd213467403a48788e476e47c4c3.patch";
|
|
|
|
sha256 = "1ayj8l6lb19hhl9bhsdfbq7jgchfmpjx0qkljnld90czcksn95yx";
|
|
|
|
})
|
2022-01-19 23:45:15 +00:00
|
|
|
# Fix build with meson 0.61
|
|
|
|
# https://github.com/elementary/music/pull/674
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/music/commit/fb3d840049c1e2e0bf8fdddea378a2db647dd096.patch";
|
|
|
|
sha256 = "sha256-tQZv7hZExLqbkGXahZxDfg7bkgwCKYbDholC2zuwlNw=";
|
|
|
|
})
|
2021-09-22 15:38:15 +00:00
|
|
|
];
|
|
|
|
|
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 = [
|
2021-09-22 15:38:15 +00:00
|
|
|
"-Dplugins=audioplayer,cdrom,ipod"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.music";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|