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

103 lines
2.0 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
, gobject-introspection
, glib-networking
, gdk-pixbuf
, glib
, pango
, wrapGAppsHook
, lastFMSupport ? true
, youtubeSupport ? true
}:
2018-06-16 03:17:01 +03:00
2018-09-12 09:07:39 +03:00
python3.pkgs.buildPythonApplication rec {
2018-12-12 11:08:56 +03:00
pname = "lollypop";
2020-04-19 04:26:12 +03:00
version = "1.2.35";
2018-06-16 03:17:01 +03:00
2018-09-12 09:07:39 +03:00
format = "other";
doCheck = false;
2018-06-16 03:17:01 +03:00
src = fetchgit {
url = "https://gitlab.gnome.org/World/lollypop";
rev = "refs/tags/${version}";
fetchSubmodules = true;
2020-04-19 04:26:12 +03:00
sha256 = "19nw9qh17yyi9ih1nwngbbwjx1vr26haqhmzsdqf0yjgsgf9vldx";
2018-06-16 03:17:01 +03:00
};
2019-01-25 22:00:47 +03:00
nativeBuildInputs = [
appstream-glib
2018-06-16 03:17:01 +03:00
desktop-file-utils
gobject-introspection
2018-06-16 03:17:01 +03:00
meson
ninja
pkgconfig
wrapGAppsHook
];
2018-09-12 09:07:39 +03:00
buildInputs = with gst_all_1; [
gdk-pixbuf
glib
glib-networking
2018-09-12 09:07:39 +03:00
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
2018-06-16 03:17:01 +03:00
gstreamer
2018-09-12 09:07:39 +03:00
gtk3
libsoup
pango
totem-pl-parser
] ++ lib.optional lastFMSupport libsecret;
2018-06-16 03:17:01 +03:00
2018-12-12 11:08:56 +03:00
propagatedBuildInputs = with python3.pkgs; [
2018-06-16 03:17:01 +03:00
beautifulsoup4
pillow
pycairo
pygobject3
]
++ lib.optional lastFMSupport pylast
++ lib.optional youtubeSupport youtube-dl
;
2018-06-16 03:17:01 +03:00
postPatch = ''
2018-09-12 09:07:39 +03:00
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
postFixup = ''
wrapPythonProgramsIn $out/libexec "$out $propagatedBuildInputs"
2018-06-16 03:17:01 +03:00
'';
2019-10-25 07:46:45 +03:00
strictDeps = false;
2019-07-13 17:48:04 +03:00
# Produce only one wrapper using wrap-python passing
# gappsWrapperArgs to wrap-python additional wrapper
# argument
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2019-07-13 17:48:04 +03:00
meta = with lib; {
2019-12-03 04:33:25 +03:00
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
2018-06-16 03:17:01 +03:00
description = "A modern music player for GNOME";
homepage = "https://wiki.gnome.org/Apps/Lollypop";
2018-12-12 11:08:56 +03:00
license = licenses.gpl3Plus;
2018-06-16 03:17:01 +03:00
maintainers = with maintainers; [ worldofpeace ];
2018-12-12 11:08:56 +03:00
platforms = platforms.linux;
2018-06-16 03:17:01 +03:00
};
}