nixpkgs/pkgs/development/tools/azcopy/default.nix
2023-09-06 15:03:14 -07:00

30 lines
707 B
Nix

{ stdenv, lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "azure-storage-azcopy";
version = "10.20.1";
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-storage-azcopy";
rev = "v${version}";
sha256 = "sha256-pfbSNFKZubgebx90zL5sVva36wXS+0NQvvMxPI8kV3Y=";
};
subPackages = [ "." ];
vendorHash = "sha256-byFroeXRMepN9RYak2++tT9IE8ZbT+0qJAyipHkE5WE=";
doCheck = false;
postInstall = ''
ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
'';
meta = with lib; {
maintainers = with maintainers; [ colemickens kashw2 ];
license = licenses.mit;
description = "The new Azure Storage data transfer utility - AzCopy v10";
};
}