diff options
author | Johannes Frankenau <johannes@frankenau.net> | 2018-03-10 12:09:03 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2018-07-19 09:50:32 +0200 |
commit | 402ee4e9eaf08a697672718cd502067c726a7c73 (patch) | |
tree | 8e795cab8320beda4a136cce57d223aa839f05ca /pkgs/applications/video/mpv/scripts/mpris.nix | |
parent | 1bec0a9ed420de10e9c9143977a2a65644d69194 (diff) |
mpv: use wrapper for scripts and add mpris script
Diffstat (limited to '')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/mpris.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/mpris.nix b/pkgs/applications/video/mpv/scripts/mpris.nix new file mode 100644 index 000000000000..e98ba9bdc3fb --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/mpris.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, pkgconfig, gobjectIntrospection, mpv }: + +stdenv.mkDerivation rec { + name = "mpv-mpris-${version}.so"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "hoyon"; + repo = "mpv-mpris"; + rev = "v${version}"; + sha256 = "0rsbrbv5q7vki59wdlx4cdkd0vvd79qgbjvdb3fn3li7aznvjwiy"; + }; + + 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 ]; + }; +} |