Merge pull request #212579 from aaronjheng/drive

drive: 0.3.8.1 -> 0.4.0

authored by

Nick Cao and committed by
GitHub
a2db46e3 69915d71

+18 -200
+18 -8
pkgs/applications/networking/drive/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub }: 2 3 - buildGoPackage rec { 4 pname = "drive"; 5 - version = "0.3.8.1"; 6 - 7 - goPackagePath = "github.com/odeke-em/drive"; 8 - subPackages = [ "cmd/drive" ]; 9 10 src = fetchFromGitHub { 11 owner = "odeke-em"; 12 repo = "drive"; 13 rev = "v${version}"; 14 - sha256 = "1b9cgc148rg5irg4jas10zv9i2km75x1zin25hld340dmpjcpi82"; 15 }; 16 17 - goDeps = ./deps.nix; 18 19 meta = with lib; { 20 homepage = "https://github.com/odeke-em/drive"; 21 description = "Google Drive client for the commandline"; 22 license = licenses.asl20; 23 platforms = platforms.unix; 24 }; 25 }
··· 1 + { lib, buildGoModule, fetchFromGitHub, fetchpatch }: 2 3 + buildGoModule rec { 4 pname = "drive"; 5 + version = "0.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "odeke-em"; 9 repo = "drive"; 10 rev = "v${version}"; 11 + hash = "sha256-mNOeOB0Tn5eqULFJZuE18PvLoHtnspv4AElmgEQKXcU="; 12 }; 13 14 + vendorHash = "sha256-F/ikdr7UCVlNv2yiEemyB7eIkYi3mX+rJvSfX488RFc="; 15 + 16 + patches = [ 17 + # Add Go Modules support 18 + (fetchpatch { 19 + url = "https://github.com/odeke-em/drive/commit/0fb4bb2cf83a7293d9a33b00f8fc07e1c8dd8b7c.patch"; 20 + hash = "sha256-4PxsgfufhTfmy/7N5QahIhmRa0rb2eUDXJ66pYb6jFg="; 21 + }) 22 + ]; 23 + 24 + subPackages = [ "cmd/drive" ]; 25 + 26 + ldflags = [ "-s" "-w" ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/odeke-em/drive"; 30 description = "Google Drive client for the commandline"; 31 license = licenses.asl20; 32 + maintainers = with maintainers; [ aaronjheng ]; 33 platforms = platforms.unix; 34 }; 35 }
-192
pkgs/applications/networking/drive/deps.nix
··· 1 - # This file was generated by go2nix. 2 - [ 3 - { 4 - goPackagePath = "cloud.google.com/go"; 5 - fetch = { 6 - type = "git"; 7 - url = "https://code.googlesource.com/gocloud"; 8 - rev = "7450882a75c8d2600748666d1ed16e0a5afa532d"; 9 - sha256 = "1hl2lsf9m1imdszf5mww4h6qrcjfdjghwh6l2kqsy85d32vbkjgd"; 10 - }; 11 - } 12 - { 13 - goPackagePath = "github.com/boltdb/bolt"; 14 - fetch = { 15 - type = "git"; 16 - url = "https://github.com/boltdb/bolt"; 17 - rev = "074dffcc83e9f421e261526d297cd93f22a34080"; 18 - sha256 = "1kkmsby74n9czqx4mvng9x1cvnm4qgjl3dp6b4mfmg2b00fwbqnv"; 19 - }; 20 - } 21 - { 22 - goPackagePath = "github.com/cheggaaa/pb"; 23 - fetch = { 24 - type = "git"; 25 - url = "https://github.com/cheggaaa/pb"; 26 - rev = "ad4efe000aa550bb54918c06ebbadc0ff17687b9"; 27 - sha256 = "0w6dl2s0vzb64q85yfy1hd5z2fq2vzwygiwl65is6hwa4vkc7hi3"; 28 - }; 29 - } 30 - { 31 - goPackagePath = "github.com/mattn/go-isatty"; 32 - fetch = { 33 - type = "git"; 34 - url = "https://github.com/mattn/go-isatty"; 35 - rev = "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8"; 36 - sha256 = "17lf13ndnai9a6dlmykqkdyzf1z04q7kffs0l7kvd78wpv3l6rm5"; 37 - }; 38 - } 39 - { 40 - goPackagePath = "github.com/odeke-em/cache"; 41 - fetch = { 42 - type = "git"; 43 - url = "https://github.com/odeke-em/cache"; 44 - rev = "baf8e436bc97557118cb0bf118ab8ac6aeeda381"; 45 - sha256 = "00nvrnp40w4m1ld89k3s3gwi9qcfjxwi8hnp62zggnvqqyc4fyz1"; 46 - }; 47 - } 48 - { 49 - goPackagePath = "github.com/odeke-em/cli-spinner"; 50 - fetch = { 51 - type = "git"; 52 - url = "https://github.com/odeke-em/cli-spinner"; 53 - rev = "610063bb4aeef25f7645b3e6080456655ec0fb33"; 54 - sha256 = "13wzs2qrxd72ah32ym0ppswhvyimjw5cqaq3q153y68vlvxd048c"; 55 - }; 56 - } 57 - { 58 - goPackagePath = "github.com/odeke-em/command"; 59 - fetch = { 60 - type = "git"; 61 - url = "https://github.com/odeke-em/command"; 62 - rev = "91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561"; 63 - sha256 = "1ghckzr8h99ckagpmb15p61xazdjmf9mjmlym634hsr9vcj84v62"; 64 - }; 65 - } 66 - { 67 - goPackagePath = "github.com/odeke-em/exponential-backoff"; 68 - fetch = { 69 - type = "git"; 70 - url = "https://github.com/odeke-em/exponential-backoff"; 71 - rev = "96e25d36ae36ad09ac02cbfe653b44c4043a8e09"; 72 - sha256 = "1as21p2jj8xpahvdxqwsw2i1s3fll14dlc9j192iq7xl1ybwpqs6"; 73 - }; 74 - } 75 - { 76 - goPackagePath = "github.com/odeke-em/extractor"; 77 - fetch = { 78 - type = "git"; 79 - url = "https://github.com/odeke-em/extractor"; 80 - rev = "801861aedb854c7ac5e1329e9713023e9dc2b4d4"; 81 - sha256 = "036zmnqxy48h6mxiwywgxix2p4fqvl4svlmcp734ri2rbq3cmxs1"; 82 - }; 83 - } 84 - { 85 - goPackagePath = "github.com/odeke-em/go-utils"; 86 - fetch = { 87 - type = "git"; 88 - url = "https://github.com/odeke-em/go-utils"; 89 - rev = "d915395a7a46a9fe73d93f4daeff5953eeac5ef2"; 90 - sha256 = "0c1z4vmz69vxak8ldw4qjcgwia5ph969gj80az7a3824gia7zhbh"; 91 - }; 92 - } 93 - { 94 - goPackagePath = "github.com/odeke-em/go-uuid"; 95 - fetch = { 96 - type = "git"; 97 - url = "https://github.com/odeke-em/go-uuid"; 98 - rev = "b211d769a9aaba5b2b8bdbab5de3c227116f3c39"; 99 - sha256 = "086l4xmwkjl5qcylcb5iwy9ksk9k5g43xwfbkcgvmhpz5mq3wmz2"; 100 - }; 101 - } 102 - { 103 - goPackagePath = "github.com/odeke-em/log"; 104 - fetch = { 105 - type = "git"; 106 - url = "https://github.com/odeke-em/log"; 107 - rev = "cad53c4565a0b0304577bd13f3862350bdc5f907"; 108 - sha256 = "059c933qjikxlvaywzpzljqnab19svymbv6x32pc7khw156fh48w"; 109 - }; 110 - } 111 - { 112 - goPackagePath = "github.com/odeke-em/meddler"; 113 - fetch = { 114 - type = "git"; 115 - url = "https://github.com/odeke-em/meddler"; 116 - rev = "d2b51d2b40e786ab5f810d85e65b96404cf33570"; 117 - sha256 = "0m0fqrn3kxy4swyk4ja1y42dn1i35rq9j85y11wb222qppy2342x"; 118 - }; 119 - } 120 - { 121 - goPackagePath = "github.com/odeke-em/pretty-words"; 122 - fetch = { 123 - type = "git"; 124 - url = "https://github.com/odeke-em/pretty-words"; 125 - rev = "9d37a7fcb4ae6f94b288d371938482994458cecb"; 126 - sha256 = "1466wjhrg9lhqmzil1vf8qj16fxk32b5kxlcccyw2x6dybqa6pkl"; 127 - }; 128 - } 129 - { 130 - goPackagePath = "github.com/odeke-em/semalim"; 131 - fetch = { 132 - type = "git"; 133 - url = "https://github.com/odeke-em/semalim"; 134 - rev = "9c88bf5f9156ed06ec5110a705d41b8580fd96f7"; 135 - sha256 = "0nq93dcl84cmlvg31rdk281ndlc2452zlh5s7i40hasi0z0kmn1k"; 136 - }; 137 - } 138 - { 139 - goPackagePath = "github.com/odeke-em/statos"; 140 - fetch = { 141 - type = "git"; 142 - url = "https://github.com/odeke-em/statos"; 143 - rev = "6f7e4db337bc11fc46d9b0456a93836cbbfe5141"; 144 - sha256 = "1lijz3cxqxd78sl0nzfgvs675dg7q99jqwvhgisnk9n84ic4ffzj"; 145 - }; 146 - } 147 - { 148 - goPackagePath = "github.com/skratchdot/open-golang"; 149 - fetch = { 150 - type = "git"; 151 - url = "https://github.com/skratchdot/open-golang"; 152 - rev = "75fb7ed4208cf72d323d7d02fd1a5964a7a9073c"; 153 - sha256 = "1b67imqbsdvg19vif1q1dfmapxy3v2anagacbql95fwnnw0v8jga"; 154 - }; 155 - } 156 - { 157 - goPackagePath = "golang.org/x/crypto"; 158 - fetch = { 159 - type = "git"; 160 - url = "https://go.googlesource.com/crypto"; 161 - rev = "5dc8cb4b8a8eb076cbb5a06bc3b8682c15bdbbd3"; 162 - sha256 = "18c1vpqlj10z1id66hglgnv51d9gwphgsdvxgghc6mcm01f1g5xj"; 163 - }; 164 - } 165 - { 166 - goPackagePath = "golang.org/x/net"; 167 - fetch = { 168 - type = "git"; 169 - url = "https://go.googlesource.com/net"; 170 - rev = "6acef71eb69611914f7a30939ea9f6e194c78172"; 171 - sha256 = "1fcsv50sbq0lpzrhx3m9jw51wa255fsbqjwsx9iszq4d0gysnnvc"; 172 - }; 173 - } 174 - { 175 - goPackagePath = "golang.org/x/oauth2"; 176 - fetch = { 177 - type = "git"; 178 - url = "https://go.googlesource.com/oauth2"; 179 - rev = "1e695b1c8febf17aad3bfa7bf0a819ef94b98ad5"; 180 - sha256 = "1sfgrc63jwslczkld7bsfipw1jm1rn06228dx0vc5gggd52155ys"; 181 - }; 182 - } 183 - { 184 - goPackagePath = "google.golang.org/api"; 185 - fetch = { 186 - type = "git"; 187 - url = "https://code.googlesource.com/google-api-go-client"; 188 - rev = "eb84d1a029af1654777e7ba65c979085305c3e38"; 189 - sha256 = "0ldmzcx5lxa81lcr39djcvyhd0ls11jlswj5877rinq3505ayf5l"; 190 - }; 191 - } 192 - ]
···