504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
872 B
Nix
35 lines
872 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "azure-storage-azcopy";
|
|
version = "10.22.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-storage-azcopy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-WS8h4WRiCTthZOT3NQE8h7BihpaHFfCe39XoGvnDZ1k=";
|
|
};
|
|
|
|
subPackages = [ "." ];
|
|
|
|
vendorHash = "sha256-afqDnrmbTR6yZHT7NysysORci4b0Oh0sjpftgAXJ5Uk=";
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The new Azure Storage data transfer utility - AzCopy v10";
|
|
homepage = "https://github.com/Azure/azure-storage-azcopy";
|
|
changelog = "https://github.com/Azure/azure-storage-azcopy/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ colemickens kashw2 ];
|
|
};
|
|
}
|