Skip to content

Commit 49f511e

Browse files
committed
baidupcs-go: 3.9.5 -> 3.9.5-unstable-2024-06-23
1 parent 0488e23 commit 49f511e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
{
2+
fetchFromGitHub,
23
buildGo122Module,
34
lib,
4-
fetchFromGitHub,
55
versionCheckHook,
66
}:
77
buildGo122Module rec {
88
pname = "baidupcs-go";
9-
version = "3.9.5";
9+
version = "3.9.5-unstable-2024-06-23";
1010
src = fetchFromGitHub {
1111
owner = "qjfoidnh";
1212
repo = "BaiduPCS-Go";
13-
rev = "v${version}";
14-
hash = "sha256-zNodRQzflOOB3hAeq4KbjRFlHQwknVy+4ucipUcoufY=";
13+
rev = "5612fc337b9556ed330274987a2f876961639cff";
14+
hash = "sha256-4mCJ5gVHjjvR6HNo47NTJvQEu7cdZZMfO8qQA7Kqzqo=";
1515
};
1616

1717
vendorHash = "sha256-msTlXtidxLTe3xjxTOWCqx/epFT0XPdwGPantDJUGpc=";
1818
doCheck = false;
1919

20+
ldflags = [
21+
"-X main.Version=${version}"
22+
];
23+
2024
nativeInstallCheckInputs = [
2125
versionCheckHook
2226
];
2327
doInstallCheck = true;
2428
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
2529

2630
meta = {
31+
mainProgram = "BaiduPCS-Go";
2732
maintainers = with lib.maintainers; [ xddxdd ];
2833
description = "Baidu Netdisk commandline client, mimicking Linux shell file handling commands";
2934
homepage = "https://github.com/qjfoidnh/BaiduPCS-Go";
3035
license = lib.licenses.asl20;
31-
mainProgram = "BaiduPCS-Go";
3236
};
3337
}

0 commit comments

Comments
 (0)