Merge pull request #212580 from aaronjheng/gdrive

gdrive: 2.1.0 -> 2.1.1

authored by Weijia Wang and committed by GitHub dc3518d8 180ef5b9

+23 -13
+23 -13
pkgs/applications/networking/gdrive/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub }: 1 + { lib, buildGoModule, fetchFromGitHub, fetchpatch }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "gdrive"; 5 - version = "2.1.0"; 6 - rev = version; 7 - 8 - goPackagePath = "github.com/prasmussen/gdrive"; 5 + version = "2.1.1"; 9 6 10 7 src = fetchFromGitHub { 11 - owner = "prasmussen"; 12 - repo = "gdrive"; 13 - sha256 = "0ywm4gdmrqzb1a99vg66a641r74p7lglavcpgkm6cc2gdwzjjfg7"; 14 - inherit rev; 8 + owner = "prasmussen"; 9 + repo = "gdrive"; 10 + rev = version; 11 + hash = "sha256-2dJmGFHfGSroucn4WgiV2NExBs5wtMDe2kX1jDBwbRs="; 15 12 }; 16 13 14 + deleteVendor = true; 15 + vendorHash = "sha256-sHNP1YwnZYu0UfgLx5+gxJmesY8Brt7rr9cptlyk9Bk="; 16 + 17 + patches = [ 18 + # Add Go Modules support 19 + (fetchpatch { 20 + url = "https://github.com/prasmussen/gdrive/pull/585/commits/faa6fc3dc104236900caa75eb22e9ed2e5ecad42.patch"; 21 + hash = "sha256-W8o2ZfhQFJISHfPavjx9sw5UB6xOZ7qRW4L0bHNddS8="; 22 + }) 23 + ]; 24 + 25 + ldflags = [ "-s" "-w" ]; 26 + 17 27 meta = with lib; { 18 - homepage = "https://github.com/prasmussen/gdrive"; 28 + homepage = "https://github.com/prasmussen/gdrive"; 19 29 description = "A command line utility for interacting with Google Drive"; 20 - platforms = platforms.unix; 21 - license = licenses.mit; 30 + license = licenses.mit; 31 + platforms = platforms.unix; 22 32 maintainers = [ maintainers.rzetterberg ]; 23 33 }; 24 34 }