12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 hash = "sha256-vZIO6ILatIWa9nJYOp4AMKwvaZLahqYWRLMDOizyBI0=";
22 passthru.updateScript = gitUpdater { };
24 nativeBuildInputs = [ pkg-config ];
33 substituteInPlace Makefile --replace-fail 'PKG_CONFIG =' 'PKG_CONFIG ?='
36 installFlags = [ "SCRIPTS_DIR=${placeholder "out"}/share/mpv/scripts" ];
38 # Otherwise, the shared object isn't `strip`ped. See:
39 # https://discourse.nixos.org/t/debug-why-a-derivation-has-a-reference-to-gcc/7009
40 stripDebugList = [ "share/mpv/scripts" ];
41 passthru.scriptName = "mpris.so";
44 description = "MPRIS plugin for mpv";
45 homepage = "https://github.com/hoyon/mpv-mpris";
46 license = licenses.mit;
47 platforms = platforms.linux;
48 maintainers = with maintainers; [ ajs124 ];
49 changelog = "https://github.com/hoyon/mpv-mpris/releases/tag/${version}";