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