mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
50 lines
1.2 KiB
Nix
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 (finalAttrs: {
|
|
pname = "bililiverecorder";
|
|
version = "2.18.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/BililiveRecorder/BililiveRecorder/releases/download/v${finalAttrs.version}/BililiveRecorder-CLI-any.zip";
|
|
hash = "sha256-b1hHLf0w+XwBBbnvP07Ik6bwIWSs13MPVjIN5b1n+C4=";
|
|
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/v${finalAttrs.version}";
|
|
mainProgram = "BililiveRecorder";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ zaldnoay ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|