2021-11-26 08:51:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 19:02:06 +01:00
|
|
|
, fetchFromGitHub
|
2021-07-18 11:19:20 +01:00
|
|
|
, fetchpatch
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-01-29 14:46:13 +00:00
|
|
|
, pkg-config
|
|
|
|
, python3
|
2019-08-05 19:02:06 +01:00
|
|
|
, vala
|
2022-05-13 02:46:25 +01:00
|
|
|
, wrapGAppsHook4
|
2022-01-29 14:46:13 +00:00
|
|
|
, glib
|
2022-05-13 02:46:25 +01:00
|
|
|
, granite7
|
2022-01-29 14:46:13 +00:00
|
|
|
, gst_all_1
|
2022-05-13 02:46:25 +01:00
|
|
|
, gtk4
|
2019-08-05 19:02:06 +01:00
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-05 23:41:32 +01:00
|
|
|
pname = "elementary-music";
|
2022-05-13 02:46:25 +01:00
|
|
|
version = "7.0.0";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-19 14:50:20 +00:00
|
|
|
repo = "music";
|
2018-08-20 21:31:18 +01:00
|
|
|
rev = version;
|
2022-05-13 02:46:25 +01:00
|
|
|
sha256 = "sha256-fZbOjZd6udJWM+jWXCmGwt6cyl/lXPsgM9XeTScbqts=";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
2021-07-18 11:19:20 +01:00
|
|
|
patches = [
|
2022-05-13 02:46:25 +01:00
|
|
|
# Use file basename for fallback audio object title
|
|
|
|
# https://github.com/elementary/music/pull/710
|
2021-07-18 11:19:20 +01:00
|
|
|
(fetchpatch {
|
2022-05-13 02:46:25 +01:00
|
|
|
url = "https://github.com/elementary/music/commit/97a437edc7652e0b85b7d3c6fd87089c14ec02e2.patch";
|
|
|
|
sha256 = "sha256-VmK5dKfSKWAIxfaKXsC8tjg6Pqq1XSGxJDQOZWJX92w=";
|
2022-01-13 03:43:25 +00:00
|
|
|
})
|
2021-07-18 11:19:20 +01:00
|
|
|
];
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 21:31:18 +01:00
|
|
|
python3
|
|
|
|
vala
|
2022-05-13 02:46:25 +01:00
|
|
|
wrapGAppsHook4
|
2018-08-20 21:31:18 +01:00
|
|
|
];
|
|
|
|
|
2022-01-29 14:46:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
2022-05-13 02:46:25 +01:00
|
|
|
granite7
|
|
|
|
gtk4
|
2022-01-29 14:46:13 +00:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gstreamer
|
|
|
|
]);
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2022-01-19 14:53:31 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 21:31:18 +01:00
|
|
|
description = "Music player and library designed for elementary OS";
|
2020-03-08 06:56:50 +00:00
|
|
|
homepage = "https://github.com/elementary/music";
|
2021-07-18 11:19:20 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-08-20 21:31:18 +01:00
|
|
|
platforms = platforms.linux;
|
2021-09-18 16:00:51 +01:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 03:47:36 +01:00
|
|
|
mainProgram = "io.elementary.music";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
}
|