mpv-handler: init at 0.3.16 (#414920)

This commit is contained in:
Aleksana
2025-06-13 17:53:06 +08:00
committed by GitHub
2 changed files with 56 additions and 0 deletions
+6
View File
@@ -14429,6 +14429,12 @@
name = "legendofmiracles";
keys = [ { fingerprint = "CC50 F82C 985D 2679 0703 AF15 19B0 82B3 DEFE 5451"; } ];
};
lonerOrz = {
email = "2788892716@qq.com";
name = "lonerOrz";
github = "lonerOrz";
githubId = 68736947;
};
longer = {
email = "michal@mieszczak.com.pl";
name = "Michał Mieszczak";
+50
View File
@@ -0,0 +1,50 @@
{
lib,
rustPlatform,
fetchFromGitHub,
makeWrapper,
mpv,
yt-dlp,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "mpv-handler";
version = "0.3.16";
src = fetchFromGitHub {
owner = "akiirui";
repo = "mpv-handler";
tag = "v${version}";
hash = "sha256-RpfHUVZmhtneeu8PIfxinYG3/groJPA9QveDSvzU6Zo=";
};
cargoHash = "sha256-FrE1PSRc7GTNUum05jNgKnzpDUc3FiS5CEM18It0lYY=";
useFetchCargoVendor = true;
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
install -Dm644 share/linux/mpv-handler.desktop -t $out/share/applications/
install -Dm644 share/linux/mpv-handler-debug.desktop -t $out/share/applications/
install -Dm644 share/linux/config.toml -t $out/share/doc/mpv-handler/
wrapProgram $out/bin/mpv-handler \
--prefix PATH : ${
lib.makeBinPath [
mpv
yt-dlp
]
}
'';
meta = {
description = "Play website videos and songs with mpv & yt-dlp";
homepage = "https://github.com/akiirui/mpv-handler";
mainProgram = "mpv-handler";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lonerOrz ];
platforms = lib.platforms.linux;
};
}