nixpkgs/pkgs/applications/video/mpv/scripts/mpris.nix
Jan Tojnar a51a99c690
gobject-introspection: rename package
camelCase package name was a huge inconsistency in GNOME package set.
2018-12-02 12:42:29 +01:00

29 lines
658 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, gobject-introspection, 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 = [ 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;
maintainers = with maintainers; [ jfrankenau ];
};
}