bilibili-tui: 1.0.9 -> 1.0.12

This commit is contained in:
Pui Yong Qing
2026-07-14 19:55:07 +08:00
parent 09e4c0235d
commit a46a9f400b

View File

@@ -5,8 +5,9 @@
nix-update-script,
stdenv,
pkg-config,
makeWrapper,
makeBinaryWrapper,
openssl,
cacert,
mpv-unwrapped,
yt-dlp-light,
@@ -14,23 +15,28 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "bilibili-tui";
version = "1.0.9";
version = "1.0.12";
src = fetchFromGitHub {
owner = "MareDevi";
repo = "bilibili-tui";
tag = "v${finalAttrs.version}";
hash = "sha256-LACNDpVhlYEgT3fN+Ff2MVipblUqPlqwOUpTLaXSCbk=";
hash = "sha256-G2aoPw8SMu3ytHbxcQrf1iH6i+b9viM+/EYorv6j5bg=";
};
cargoHash = "sha256-q3jRjmzQA64sZjVShoEmu1x2CFOAgBGgZYyTq7Lg4is=";
cargoHash = "sha256-ojAN98of7vZp/F1n0a/88e6k4nBPG9HPKyTO1xc8o4Q=";
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ pkg-config ];
nativeBuildInputs = [
makeBinaryWrapper
]
++ lib.optional (!stdenv.hostPlatform.isDarwin) pkg-config;
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [ openssl ];
buildInputs = lib.optional (!stdenv.hostPlatform.isDarwin) openssl;
env.OPENSSL_NO_VENDOR = true;
nativeCheckInputs = [ cacert ];
# Wrap mpv as fallback; users should prefer their system's mpv in PATH
postInstall = lib.optionalString withMpv ''
wrapProgram $out/bin/bilibili-tui \