2018-12-02 03:41:15 -08:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gobject-introspection, mpv }:
|
2018-03-10 03:09:03 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpv-mpris-${version}.so";
|
2020-04-27 05:22:38 -07:00
|
|
|
version = "0.5";
|
2018-03-10 03:09:03 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hoyon";
|
|
|
|
repo = "mpv-mpris";
|
2018-08-10 12:28:53 -07:00
|
|
|
rev = version;
|
2020-04-27 05:22:38 -07:00
|
|
|
sha256 = "07p6li5z38pkfd40029ag2jqx917vyl3ng5p2i4v5a0af14slcnk";
|
2018-03-10 03:09:03 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-12-02 03:41:15 -08:00
|
|
|
buildInputs = [ gobject-introspection mpv ];
|
2018-03-10 03:09:03 -08:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp mpris.so $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MPRIS plugin for mpv";
|
2020-02-10 09:55:23 -08:00
|
|
|
homepage = "https://github.com/hoyon/mpv-mpris";
|
2018-03-10 03:09:03 -08:00
|
|
|
license = licenses.mit;
|
2020-05-03 11:13:15 -07:00
|
|
|
platforms = platforms.linux;
|
2018-03-10 03:09:03 -08:00
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|