Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
pkg-config,
|
|
glib,
|
|
mpv-unwrapped,
|
|
ffmpeg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpv-mpris";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hoyon";
|
|
repo = "mpv-mpris";
|
|
rev = version;
|
|
hash = "sha256-vZIO6ILatIWa9nJYOp4AMKwvaZLahqYWRLMDOizyBI0=";
|
|
};
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
mpv-unwrapped
|
|
ffmpeg
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace-fail 'PKG_CONFIG =' 'PKG_CONFIG ?='
|
|
'';
|
|
|
|
installFlags = [ "SCRIPTS_DIR=${placeholder "out"}/share/mpv/scripts" ];
|
|
|
|
# Otherwise, the shared object isn't `strip`ped. See:
|
|
# https://discourse.nixos.org/t/debug-why-a-derivation-has-a-reference-to-gcc/7009
|
|
stripDebugList = [ "share/mpv/scripts" ];
|
|
passthru.scriptName = "mpris.so";
|
|
|
|
meta = {
|
|
description = "MPRIS plugin for mpv";
|
|
homepage = "https://github.com/hoyon/mpv-mpris";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ ajs124 ];
|
|
changelog = "https://github.com/hoyon/mpv-mpris/releases/tag/${version}";
|
|
};
|
|
}
|