nixpkgs/pkgs/applications/video/mpv/scripts/mpris.nix
2018-08-10 21:29:37 +02:00

29 lines
656 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, gobjectIntrospection, mpv }:
stdenv.mkDerivation rec {
name = "mpv-mpris-${version}.so";
version = "0.2";
src = fetchFromGitHub {
owner = "hoyon";
repo = "mpv-mpris";
rev = version;
sha256 = "06hq3j1jjlaaz9ss5l7illxz8vm5bng86jl24kawglwkqayhdnjx";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gobjectIntrospection mpv ];
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 ];
};
}