2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gobject-introspection, mpv }:
|
2018-03-10 11:09:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mpv-mpris-${version}.so";
|
2020-02-10 17:55:23 +00:00
|
|
|
version = "0.4";
|
2018-03-10 11:09:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hoyon";
|
|
|
|
repo = "mpv-mpris";
|
2018-08-10 20:28:53 +01:00
|
|
|
rev = version;
|
2020-02-10 17:55:23 +00:00
|
|
|
sha256 = "1fr3jvja8s2gdpx8qyk9r17977flms3qpm8zci62nd9r5wjdvr5i";
|
2018-03-10 11:09:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
buildInputs = [ gobject-introspection mpv ];
|
2018-03-10 11:09:03 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp mpris.so $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MPRIS plugin for mpv";
|
2020-02-10 17:55:23 +00:00
|
|
|
homepage = "https://github.com/hoyon/mpv-mpris";
|
2018-03-10 11:09:03 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|