2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-09-18 23:14:33 -07:00
|
|
|
|
2019-11-18 00:18:00 -08:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "azure-storage-azcopy";
|
2021-01-21 10:08:11 -08:00
|
|
|
version = "10.8.0";
|
2018-09-18 23:14:33 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Azure";
|
|
|
|
repo = "azure-storage-azcopy";
|
2020-07-28 02:20:00 -07:00
|
|
|
rev = "v${version}";
|
2021-01-21 10:08:11 -08:00
|
|
|
sha256 = "sha256-zA0/5lpVefZD0m7g7SfqSRAFkQm2b+g/F3doCl9oAn8=";
|
2018-09-18 23:14:33 -07:00
|
|
|
};
|
|
|
|
|
2019-11-18 00:18:00 -08:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-01-21 10:08:11 -08:00
|
|
|
vendorSha256 = "sha256-t7PluxN6naDB35eC59Xus1hgZflgViWF2yFog9mkaOA=";
|
2019-11-18 00:18:00 -08:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-11-18 00:18:00 -08:00
|
|
|
postInstall = ''
|
|
|
|
ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
|
|
|
|
'';
|
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2018-09-18 23:14:33 -07:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
license = licenses.mit;
|
|
|
|
description = "The new Azure Storage data transfer utility - AzCopy v10";
|
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|