mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
baidupcs-go: 3.9.5 -> 3.9.5-unstable-2024-06-23
This commit is contained in:
parent
0488e230e6
commit
49f511eb55
@ -1,22 +1,26 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
buildGo122Module,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
}:
|
||||
buildGo122Module rec {
|
||||
pname = "baidupcs-go";
|
||||
version = "3.9.5";
|
||||
version = "3.9.5-unstable-2024-06-23";
|
||||
src = fetchFromGitHub {
|
||||
owner = "qjfoidnh";
|
||||
repo = "BaiduPCS-Go";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-zNodRQzflOOB3hAeq4KbjRFlHQwknVy+4ucipUcoufY=";
|
||||
rev = "5612fc337b9556ed330274987a2f876961639cff";
|
||||
hash = "sha256-4mCJ5gVHjjvR6HNo47NTJvQEu7cdZZMfO8qQA7Kqzqo=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-msTlXtidxLTe3xjxTOWCqx/epFT0XPdwGPantDJUGpc=";
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [
|
||||
"-X main.Version=${version}"
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
@ -24,10 +28,10 @@ buildGo122Module rec {
|
||||
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
|
||||
|
||||
meta = {
|
||||
mainProgram = "BaiduPCS-Go";
|
||||
maintainers = with lib.maintainers; [ xddxdd ];
|
||||
description = "Baidu Netdisk commandline client, mimicking Linux shell file handling commands";
|
||||
homepage = "https://github.com/qjfoidnh/BaiduPCS-Go";
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "BaiduPCS-Go";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user