nixpkgs/pkgs/misc/lollypop-portal/default.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

2018-07-13 02:42:34 +02:00
{ stdenv, fetchFromGitLab, meson, ninja, pkgconfig
2018-09-18 20:42:25 +02:00
, python3, gnome3, gst_all_1, gtk3, libnotify
2018-07-13 02:42:34 +02:00
, kid3, easytag, gobjectIntrospection, wrapGAppsHook }:
2018-09-18 20:42:25 +02:00
python3.pkgs.buildPythonApplication rec {
2018-07-22 12:25:56 +02:00
name = "lollypop-portal-${version}";
2018-07-13 02:42:34 +02:00
version = "0.9.7";
2018-09-18 20:42:25 +02:00
format = "other";
doCheck = false;
2018-07-13 02:42:34 +02:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "gnumdk";
repo = name;
rev = version;
sha256 = "0rn5xmh6391i9l69y613pjad3pzdilskr2xjfcir4vpk8wprvph3";
};
nativeBuildInputs = [
gobjectIntrospection
meson
ninja
pkgconfig
wrapGAppsHook
];
buildInputs = [
gnome3.gnome-settings-daemon
2018-09-18 20:42:25 +02:00
gnome3.libsecret
gnome3.totem-pl-parser
2018-07-13 02:42:34 +02:00
gst_all_1.gst-plugins-base
2018-09-18 20:42:25 +02:00
gst_all_1.gstreamer
2018-07-13 02:42:34 +02:00
gtk3
libnotify
2018-09-18 20:42:25 +02:00
python3
2018-07-13 02:42:34 +02:00
];
2018-09-18 20:42:25 +02:00
pythonPath = with python3.pkgs; [
2018-07-13 02:42:34 +02:00
pycairo
2018-09-18 20:42:25 +02:00
pydbus
pygobject3
2018-07-13 02:42:34 +02:00
];
preFixup = ''
buildPythonPath "$out/libexec/lollypop-portal $pythonPath"
2018-09-18 20:42:25 +02:00
patchPythonScript "$out/libexec/lollypop-portal"
2018-07-13 02:42:34 +02:00
gappsWrapperArgs+=(
--prefix PATH : "${stdenv.lib.makeBinPath [ easytag kid3 ]}"
)
'';
meta = with stdenv.lib; {
description = "DBus Service for Lollypop";
homepage = https://gitlab.gnome.org/gnumdk/lollypop-portal;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}