2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-11-27 21:28:24 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, intltool
|
|
|
|
, libnotify
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
2015-05-20 19:56:42 +00:00
|
|
|
}:
|
|
|
|
|
2019-11-27 21:28:24 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-05-24 04:37:33 +00:00
|
|
|
pname = "mpDris2";
|
2022-04-30 17:54:23 +00:00
|
|
|
version = "0.9.1";
|
2019-11-27 21:28:24 +00:00
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
2015-05-20 19:56:42 +00:00
|
|
|
|
2019-11-27 21:28:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eonpatapon";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-30 17:54:23 +00:00
|
|
|
sha256 = "sha256-1Y6K3z8afUXeKhZzeiaEF3yqU0Ef7qdAj9vAkRlD2p8=";
|
2015-05-20 19:56:42 +00:00
|
|
|
};
|
|
|
|
|
2017-03-07 11:33:36 +00:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2019-11-27 21:28:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gobject-introspection
|
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dbus-python
|
|
|
|
mpd2
|
|
|
|
mutagen
|
|
|
|
pygobject3
|
|
|
|
];
|
2015-05-20 19:56:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-05-20 19:56:42 +00:00
|
|
|
description = "MPRIS 2 support for mpd";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/eonpatapon/mpDris2/";
|
2015-05-20 19:56:42 +00:00
|
|
|
license = licenses.gpl3;
|
2022-04-30 17:54:23 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-05-20 19:56:42 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|