mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
29 lines
656 B
Nix
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 ];
|
|
};
|
|
}
|