9 pname = "bililiverecorder";
11 dotnet = with dotnetCorePackages; combinePackages [
17 hash = "sha256-2usiJTGA2FcJ9HBs3RDiARfC2yv/UqBgmT+z5F5Y7w0=";
21 inherit pname version;
24 url = "https://github.com/BililiveRecorder/BililiveRecorder/releases/download/v${version}/BililiveRecorder-CLI-any.zip";
29 nativeBuildInputs = [ makeWrapper ];
34 mkdir -p $out/{bin,share/${pname}-${version}}
35 cp -r * $out/share/${pname}-${version}/.
37 makeWrapper "${dotnet}/bin/dotnet" $out/bin/BililiveRecorder \
38 --add-flags "$out/share/${pname}-${version}/BililiveRecorder.Cli.dll"
44 description = "Convenient free open source bilibili live recording tool";
45 homepage = "https://rec.danmuji.org/";
46 changelog = "https://github.com/BililiveRecorder/BililiveRecorder/releases/tag/${version}";
47 mainProgram = "BililiveRecorder";
48 license = licenses.gpl3Only;
49 maintainers = with maintainers; [ zaldnoay ];
50 platforms = platforms.unix;