gdrive: 2.1.0 -> 2.1.1

This commit is contained in:
Aaron Jheng 2023-01-25 10:53:49 +00:00
parent 4d52a644a7
commit 088caf158c
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,24 +1,34 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoPackage rec { buildGoModule rec {
pname = "gdrive"; pname = "gdrive";
version = "2.1.0"; version = "2.1.1";
rev = version;
goPackagePath = "github.com/prasmussen/gdrive";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "prasmussen"; owner = "prasmussen";
repo = "gdrive"; repo = "gdrive";
sha256 = "0ywm4gdmrqzb1a99vg66a641r74p7lglavcpgkm6cc2gdwzjjfg7"; rev = version;
inherit rev; hash = "sha256-2dJmGFHfGSroucn4WgiV2NExBs5wtMDe2kX1jDBwbRs=";
}; };
deleteVendor = true;
vendorHash = "sha256-sHNP1YwnZYu0UfgLx5+gxJmesY8Brt7rr9cptlyk9Bk=";
patches = [
# Add Go Modules support
(fetchpatch {
url = "https://github.com/prasmussen/gdrive/pull/585/commits/faa6fc3dc104236900caa75eb22e9ed2e5ecad42.patch";
hash = "sha256-W8o2ZfhQFJISHfPavjx9sw5UB6xOZ7qRW4L0bHNddS8=";
})
];
ldflags = [ "-s" "-w" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/prasmussen/gdrive"; homepage = "https://github.com/prasmussen/gdrive";
description = "A command line utility for interacting with Google Drive"; description = "A command line utility for interacting with Google Drive";
platforms = platforms.unix; license = licenses.mit;
license = licenses.mit; platforms = platforms.unix;
maintainers = [ maintainers.rzetterberg ]; maintainers = [ maintainers.rzetterberg ];
}; };
} }