Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchzip,
makeWrapper,
dotnetCorePackages,
}:
let
dotnet =
with dotnetCorePackages;
combinePackages [
runtime_8_0-bin
aspnetcore_8_0-bin
];
in
stdenv.mkDerivation rec {
pname = "bililiverecorder";
version = "2.17.3";
src = fetchzip {
url = "https://github.com/BililiveRecorder/BililiveRecorder/releases/download/v${version}/BililiveRecorder-CLI-any.zip";
hash = "sha256-bmwRa8pQWCzP3SeZQsUZ9r0UbGypN5c6oeGa6XR/Hqo=";
stripRoot = false;
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,lib}
cp -r . $out/lib/bililiverecorder
makeWrapper ${dotnet}/bin/dotnet $out/bin/BililiveRecorder \
--add-flags $out/lib/bililiverecorder/BililiveRecorder.Cli.dll
runHook postInstall
'';
meta = {
description = "Convenient free open source bilibili live recording tool";
homepage = "https://rec.danmuji.org/";
changelog = "https://github.com/BililiveRecorder/BililiveRecorder/releases/tag/${version}";
mainProgram = "BililiveRecorder";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ zaldnoay ];
platforms = lib.platforms.unix;
};
}