Skip to content

Commit 90e4a26

Browse files
authored
biliup-rs: init at 0.2.2 (#383008)
2 parents 5477113 + a5c20f1 commit 90e4a26

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
rustPlatform,
5+
nix-update-script,
6+
7+
python3,
8+
sqlite,
9+
}:
10+
11+
rustPlatform.buildRustPackage rec {
12+
pname = "biliup-rs";
13+
version = "0.2.2";
14+
15+
src = fetchFromGitHub {
16+
owner = "biliup";
17+
repo = "biliup-rs";
18+
tag = "v${version}";
19+
hash = "sha256-Wpi5ONOzWL/NUUuIR4jaDcJFq7ZIYi7gkIxFIU3SLVY=";
20+
};
21+
22+
nativeBuildInputs = [
23+
python3
24+
sqlite
25+
];
26+
27+
useFetchCargoVendor = true;
28+
cargoHash = "sha256-4SH7ux15Sm7NJDY79x9O7oahvbjS4kZzzY/9UsLDq0U=";
29+
30+
passthru.updateScript = nix-update-script { };
31+
32+
meta = {
33+
changelog = "https://github.com/biliup/biliup-rs/releases/tag/v${version}";
34+
description = "CLI tool for uploading videos to Bilibili";
35+
homepage = "https://biliup.github.io/biliup-rs";
36+
license = lib.licenses.mit;
37+
maintainers = with lib.maintainers; [ oosquare ];
38+
mainProgram = "biliup";
39+
platforms = lib.platforms.all;
40+
};
41+
}

0 commit comments

Comments
 (0)