1{ lib
2, stdenv
3, fetchFromGitHub
4, buildGoModule
5}:
6
7buildGoModule rec {
8 pname = "azure-storage-azcopy";
9 version = "10.21.1";
10
11 src = fetchFromGitHub {
12 owner = "Azure";
13 repo = "azure-storage-azcopy";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-FdiDxWmCRkSOa+6A9XgKeyFGk/ba+BgFm3/ChERkYvk=";
16 };
17
18 subPackages = [ "." ];
19
20 vendorHash = "sha256-F5YMPwdS2A5FAwuG1gfiAqBKapZ24VIGzJXnwojoDk0=";
21
22 doCheck = false;
23
24 postInstall = ''
25 ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
26 '';
27
28 meta = with lib; {
29 description = "The new Azure Storage data transfer utility - AzCopy v10";
30 homepage = "https://github.com/Azure/azure-storage-azcopy";
31 changelog = "https://github.com/Azure/azure-storage-azcopy/releases/tag/v${version}";
32 license = licenses.mit;
33 maintainers = with maintainers; [ colemickens kashw2 ];
34 };
35}