Merge pull request #250557 from zaldnoay/add-bililiverecorder
bililiverecorder: init at 2.6.3
This commit is contained in:
commit
8219beb214
3 changed files with 59 additions and 0 deletions
|
@ -18984,6 +18984,12 @@
|
|||
githubId = 1319905;
|
||||
name = "Uma Zalakain";
|
||||
};
|
||||
zaldnoay = {
|
||||
email = "zunway@outlook.com";
|
||||
github = "zaldnoay";
|
||||
githubId = 5986078;
|
||||
name = "Zunway Liang";
|
||||
};
|
||||
zanculmarktum = {
|
||||
name = "Azure Zanculmarktum";
|
||||
email = "zanculmarktum@gmail.com";
|
||||
|
|
51
pkgs/servers/bililiverecorder/default.nix
Normal file
51
pkgs/servers/bililiverecorder/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchzip
|
||||
, makeWrapper
|
||||
, dotnetCorePackages
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "bililiverecorder";
|
||||
|
||||
dotnet = with dotnetCorePackages; combinePackages [
|
||||
runtime_6_0
|
||||
aspnetcore_6_0
|
||||
];
|
||||
|
||||
version = "2.6.3";
|
||||
hash = "sha256-h7nsbi831HB1tmo7d9vlR8fSKeTn2Ezn8NVl02Z1oQ0=";
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/BililiveRecorder/BililiveRecorder/releases/download/v${version}/BililiveRecorder-CLI-any.zip";
|
||||
stripRoot = false;
|
||||
inherit hash;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,share/${pname}-${version}}
|
||||
cp -r * $out/share/${pname}-${version}/.
|
||||
|
||||
makeWrapper "${dotnet}/bin/dotnet" $out/bin/BililiveRecorder \
|
||||
--add-flags "$out/share/${pname}-${version}/BililiveRecorder.Cli.dll"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A convenient free open source bilibili live recording tool";
|
||||
homepage = "https://rec.danmuji.org/";
|
||||
changelog = "https://github.com/BililiveRecorder/BililiveRecorder/releases/tag/${version}";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ zaldnoay ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -350,6 +350,8 @@ with pkgs;
|
|||
|
||||
bibtex-tidy = callPackage ../tools/typesetting/bibtex-tidy { };
|
||||
|
||||
bililiverecorder = callPackage ../servers/bililiverecorder { };
|
||||
|
||||
binbloom = callPackage ../tools/security/binbloom { };
|
||||
|
||||
bingo = callPackage ../development/tools/bingo { };
|
||||
|
|
Loading…
Reference in a new issue