3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/mpv/scripts/mpris.nix

30 lines
693 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, gobject-introspection, mpv }:
stdenv.mkDerivation rec {
name = "mpv-mpris-${version}.so";
2020-04-27 13:22:38 +01:00
version = "0.5";
src = fetchFromGitHub {
owner = "hoyon";
repo = "mpv-mpris";
2018-08-10 20:28:53 +01:00
rev = version;
2020-04-27 13:22:38 +01:00
sha256 = "07p6li5z38pkfd40029ag2jqx917vyl3ng5p2i4v5a0af14slcnk";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gobject-introspection 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;
platforms = platforms.linux;
maintainers = with maintainers; [ jfrankenau ];
};
}