nixpkgs/pkgs/by-name/lo/lollypop/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

121 lines
2.3 KiB
Nix
Raw Normal View History

{
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,
}:
2018-06-16 00:17:01 +00:00
2024-05-06 04:22:29 +00:00
python3.pkgs.buildPythonApplication rec {
2018-12-12 08:08:56 +00:00
pname = "lollypop";
version = "1.4.40";
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;
hash = "sha256-hdReviNgcigXuNqJns6aPW+kixlpmRXtqrLlm/LGHBo=";
2018-06-16 00:17:01 +00:00
};
2019-01-25 19:00:47 +00:00
nativeBuildInputs = [
appstream-glib
2018-06-16 00:17:01 +00:00
desktop-file-utils
gobject-introspection
2018-06-16 00:17:01 +00:00
meson
ninja
pkg-config
wrapGAppsHook3
2018-06-16 00:17:01 +00:00
];
buildInputs =
(with gst_all_1; [
2024-05-06 04:22:29 +00:00
gst-libav
gst-plugins-bad
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gstreamer
])
++ [
gdk-pixbuf
glib
glib-networking
2024-05-06 04:22:29 +00:00
gtk3
libhandy
libsoup_3
pango
totem-pl-parser
]
++ lib.optional lastFMSupport libsecret;
2018-06-16 00:17:01 +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;
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
'';
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;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
2019-07-13 14:48:04 +00:00
passthru = {
updateScript = nix-update-script { };
};
meta = {
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 = "Modern music player for GNOME";
homepage = "https://gitlab.gnome.org/World/lollypop";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ lovesegfault ];
platforms = lib.platforms.linux;
mainProgram = "lollypop";
2018-06-16 00:17:01 +00:00
};
}