Skip to content

Commit c4b1fa4

Browse files
authored
bililiverecorder:2.13.0 -> 2.15.1 (#382381)
2 parents de6ce25 + 0f72ce7 commit c4b1fa4

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed
Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,49 @@
1-
{ lib
2-
, stdenv
3-
, fetchzip
4-
, makeWrapper
5-
, dotnetCorePackages
1+
{
2+
lib,
3+
stdenv,
4+
fetchzip,
5+
makeWrapper,
6+
dotnetCorePackages,
67
}:
78

89
let
9-
pname = "bililiverecorder";
10-
11-
dotnet = with dotnetCorePackages; combinePackages [
12-
runtime_6_0-bin
13-
aspnetcore_6_0-bin
14-
];
15-
16-
version = "2.13.0";
17-
hash = "sha256-4OQ2gut/eLk4CXRN5E3Z8XobXsT3bSmtmJEcHzHcz/0=";
18-
10+
dotnet =
11+
with dotnetCorePackages;
12+
combinePackages [
13+
runtime_8_0-bin
14+
aspnetcore_8_0-bin
15+
];
1916
in
20-
stdenv.mkDerivation {
21-
inherit pname version;
17+
stdenv.mkDerivation rec {
18+
pname = "bililiverecorder";
19+
version = "2.15.1";
2220

2321
src = fetchzip {
2422
url = "https://github.com/BililiveRecorder/BililiveRecorder/releases/download/v${version}/BililiveRecorder-CLI-any.zip";
23+
hash = "sha256-ugzFiuLe+Al3aRvEM3D4kqnaFrFR4Pr95UlEg0VGvvU=";
2524
stripRoot = false;
26-
inherit hash;
2725
};
2826

2927
nativeBuildInputs = [ makeWrapper ];
3028

3129
installPhase = ''
3230
runHook preInstall
3331
34-
mkdir -p $out/{bin,share/${pname}-${version}}
35-
cp -r * $out/share/${pname}-${version}/.
36-
37-
makeWrapper "${dotnet}/bin/dotnet" $out/bin/BililiveRecorder \
38-
--add-flags "$out/share/${pname}-${version}/BililiveRecorder.Cli.dll"
32+
mkdir -p $out/{bin,lib}
33+
cp -r . $out/lib/bililiverecorder
34+
makeWrapper ${dotnet}/bin/dotnet $out/bin/BililiveRecorder \
35+
--add-flags $out/lib/bililiverecorder/BililiveRecorder.Cli.dll
3936
4037
runHook postInstall
4138
'';
4239

43-
meta = with lib; {
40+
meta = {
4441
description = "Convenient free open source bilibili live recording tool";
4542
homepage = "https://rec.danmuji.org/";
4643
changelog = "https://github.com/BililiveRecorder/BililiveRecorder/releases/tag/${version}";
4744
mainProgram = "BililiveRecorder";
48-
license = licenses.gpl3Only;
49-
maintainers = with maintainers; [ zaldnoay ];
50-
platforms = platforms.unix;
45+
license = lib.licenses.gpl3Only;
46+
maintainers = with lib.maintainers; [ zaldnoay ];
47+
platforms = lib.platforms.unix;
5148
};
5249
}

0 commit comments

Comments
 (0)