1{ stdenv, lib, fetchFromGitHub, buildGoModule }:
2
3buildGoModule rec {
4 pname = "azure-storage-azcopy";
5 version = "10.19.0";
6
7 src = fetchFromGitHub {
8 owner = "Azure";
9 repo = "azure-storage-azcopy";
10 rev = "v${version}";
11 sha256 = "sha256-NmiLNkecd5u8r1L6e3jdAGP4HCP1udWxM2jRZkFe1qI=";
12 };
13
14 subPackages = [ "." ];
15
16 vendorHash = "sha256-XurlmsKblDCX3ldFEmYmK24NEfdw9ahiUWgsxYGwz48=";
17
18 doCheck = false;
19
20 postInstall = ''
21 ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
22 '';
23
24 meta = with lib; {
25 broken = stdenv.isDarwin;
26 maintainers = with maintainers; [ colemickens ];
27 license = licenses.mit;
28 description = "The new Azure Storage data transfer utility - AzCopy v10";
29 };
30}