2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitLab,
|
|
|
|
nix-update-script,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
python3,
|
|
|
|
gtk3,
|
|
|
|
gst_all_1,
|
|
|
|
libhandy,
|
|
|
|
libsecret,
|
|
|
|
libsoup_3,
|
|
|
|
appstream-glib,
|
|
|
|
desktop-file-utils,
|
|
|
|
totem-pl-parser,
|
|
|
|
gobject-introspection,
|
|
|
|
glib-networking,
|
|
|
|
gdk-pixbuf,
|
|
|
|
glib,
|
|
|
|
pango,
|
|
|
|
kid3,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
lastFMSupport ? true,
|
|
|
|
youtubeSupport ? true,
|
|
|
|
kid3Support ? true,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lollypop";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.4.40";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-hdReviNgcigXuNqJns6aPW+kixlpmRXtqrLlm/LGHBo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs =
|
|
|
|
(with gst_all_1; [
|
2024-05-15 15:35:15 +00:00
|
|
|
gst-libav
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-ugly
|
|
|
|
gstreamer
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
])
|
|
|
|
++ [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
glib-networking
|
2024-05-15 15:35:15 +00:00
|
|
|
gtk3
|
|
|
|
libhandy
|
|
|
|
libsoup_3
|
|
|
|
pango
|
|
|
|
totem-pl-parser
|
2024-07-27 06:49:29 +00:00
|
|
|
]
|
|
|
|
++ lib.optional lastFMSupport libsecret;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
(with python3.pkgs; [
|
|
|
|
beautifulsoup4
|
|
|
|
pillow
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
])
|
|
|
|
++ lib.optional lastFMSupport python3.pkgs.pylast
|
|
|
|
++ lib.optional youtubeSupport python3.pkgs.yt-dlp
|
|
|
|
++ lib.optional kid3Support kid3;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/libexec "$out $propagatedBuildInputs"
|
|
|
|
'';
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
# Produce only one wrapper using wrap-python passing
|
|
|
|
# gappsWrapperArgs to wrap-python additional wrapper
|
|
|
|
# argument
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern music player for GNOME";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/lollypop";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ lovesegfault ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "lollypop";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|