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