nixpkgs-suyu/pkgs/applications/audio/lollypop/default.nix

97 lines
1.9 KiB
Nix
Raw Normal View History

{ lib
, fetchgit
, meson
, ninja
, pkgconfig
, python3
, gtk3
, gst_all_1
, libsecret
, libsoup
, appstream-glib
, desktop-file-utils
, totem-pl-parser
, hicolor-icon-theme
, gobject-introspection
, wrapGAppsHook
, lastFMSupport ? true
, youtubeSupport ? true
}:
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";
version = "1.1.4.16";
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;
sha256 = "1azfxc1vc1j4ph0zrfsgz2gac1vwmbj65j6wjlxx3nr8kia4mccl";
2018-06-16 02:17:01 +02:00
};
2019-01-25 20:00:47 +01:00
nativeBuildInputs = [
appstream-glib
2018-06-16 02:17:01 +02:00
desktop-file-utils
gobject-introspection
2018-06-16 02:17:01 +02:00
meson
ninja
pkgconfig
wrapGAppsHook
];
2018-09-12 08:07:39 +02:00
buildInputs = with gst_all_1; [
gobject-introspection
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
hicolor-icon-theme
2018-09-12 08:07:39 +02:00
libsoup
totem-pl-parser
] ++ 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
]
++ 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
'';
preFixup = ''
2018-12-12 09:08:56 +01:00
buildPythonPath "$out $propagatedBuildInputs"
2018-09-12 08:07:39 +02:00
patchPythonScript "$out/libexec/lollypop-sp"
2018-06-16 02:17:01 +02:00
'';
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;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
];
meta = with lib; {
2018-06-16 02:17:01 +02:00
description = "A modern music player for GNOME";
2018-12-12 09:08:56 +01:00
homepage = https://wiki.gnome.org/Apps/Lollypop;
license = licenses.gpl3Plus;
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
2018-06-16 02:17:01 +02:00
maintainers = with maintainers; [ worldofpeace ];
2018-12-12 09:08:56 +01:00
platforms = platforms.linux;
2018-06-16 02:17:01 +02:00
};
}