2019-04-24 17:54:18 +02:00
|
|
|
{ lib
|
|
|
|
, fetchgit
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-04-24 17:54:18 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-04-24 17:54:18 +02:00
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, gst_all_1
|
2020-11-08 01:29:44 +01:00
|
|
|
, libhandy
|
2019-04-24 17:54:18 +02:00
|
|
|
, libsecret
|
|
|
|
, libsoup
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, totem-pl-parser
|
|
|
|
, gobject-introspection
|
2020-03-04 01:48:24 +01:00
|
|
|
, glib-networking
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, pango
|
2019-04-24 17:54:18 +02:00
|
|
|
, wrapGAppsHook
|
|
|
|
, lastFMSupport ? true
|
2019-08-06 20:05:25 +02:00
|
|
|
, youtubeSupport ? true
|
2019-04-24 17:54:18 +02:00
|
|
|
}:
|
2018-06-16 02:17:01 +02:00
|
|
|
|
2018-09-12 08:07:39 +02:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-12-12 09:08:56 +01:00
|
|
|
pname = "lollypop";
|
2021-03-07 09:12:55 +01:00
|
|
|
version = "1.4.17";
|
2018-06-16 02:17:01 +02:00
|
|
|
|
2018-09-12 08:07:39 +02:00
|
|
|
format = "other";
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-16 02:17:01 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.gnome.org/World/lollypop";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
fetchSubmodules = true;
|
2021-03-07 09:12:55 +01:00
|
|
|
sha256 = "sha256-GrznUXIYUTYOKQ1znsCqmBdm5YImCABMK2NGRtx5fSk=";
|
2018-06-16 02:17:01 +02:00
|
|
|
};
|
|
|
|
|
2019-01-25 20:00:47 +01:00
|
|
|
nativeBuildInputs = [
|
2018-06-25 04:32:43 +02:00
|
|
|
appstream-glib
|
2018-06-16 02:17:01 +02:00
|
|
|
desktop-file-utils
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-06-16 02:17:01 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2018-06-16 02:17:01 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2018-09-12 08:07:39 +02:00
|
|
|
buildInputs = with gst_all_1; [
|
2020-03-04 01:48:24 +01:00
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
glib-networking
|
2018-09-12 08:07:39 +02:00
|
|
|
gst-libav
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
2018-06-16 02:17:01 +02:00
|
|
|
gstreamer
|
2018-09-12 08:07:39 +02:00
|
|
|
gtk3
|
2020-11-08 01:29:44 +01:00
|
|
|
libhandy
|
2018-09-12 08:07:39 +02:00
|
|
|
libsoup
|
2020-03-04 01:48:24 +01:00
|
|
|
pango
|
2018-12-25 23:27:49 +01:00
|
|
|
totem-pl-parser
|
2019-04-24 17:54:18 +02:00
|
|
|
] ++ lib.optional lastFMSupport libsecret;
|
2018-06-16 02:17:01 +02:00
|
|
|
|
2018-12-12 09:08:56 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2018-06-16 02:17:01 +02:00
|
|
|
beautifulsoup4
|
|
|
|
pillow
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
2019-04-24 17:54:18 +02:00
|
|
|
]
|
|
|
|
++ lib.optional lastFMSupport pylast
|
|
|
|
++ lib.optional youtubeSupport youtube-dl
|
|
|
|
;
|
2018-06-16 02:17:01 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
2018-09-12 08:07:39 +02:00
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2019-09-29 07:40:27 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/libexec "$out $propagatedBuildInputs"
|
2018-06-16 02:17:01 +02:00
|
|
|
'';
|
|
|
|
|
2019-10-25 06:46:45 +02:00
|
|
|
strictDeps = false;
|
|
|
|
|
2019-07-13 16:48:04 +02:00
|
|
|
# Produce only one wrapper using wrap-python passing
|
|
|
|
# gappsWrapperArgs to wrap-python additional wrapper
|
|
|
|
# argument
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2019-12-11 00:23:57 +01:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
2019-07-13 16:48:04 +02:00
|
|
|
|
2020-07-29 18:33:39 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-04-24 17:54:18 +02:00
|
|
|
meta = with lib; {
|
2019-12-03 02:33:25 +01:00
|
|
|
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
|
2018-06-16 02:17:01 +02:00
|
|
|
description = "A modern music player for GNOME";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Lollypop";
|
2018-12-12 09:08:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
2018-12-12 09:08:56 +01:00
|
|
|
platforms = platforms.linux;
|
2018-06-16 02:17:01 +02:00
|
|
|
};
|
|
|
|
}
|