depot/third_party/nixpkgs/pkgs/by-name/az/azure-storage-azcopy/package.nix

34 lines
859 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "azure-storage-azcopy";
version = "10.27.0";
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-storage-azcopy";
rev = "refs/tags/v${version}";
hash = "sha256-TF0vChuM3OF/YbCsP8Vg4x609Q1QgqwBNmKUdWCHHUc=";
};
subPackages = [ "." ];
vendorHash = "sha256-dYIZb8sSh1Y8yllWOSsWEpiaIwcwZL2wCet3Terl0Ro=";
doCheck = false;
postInstall = ''
ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
'';
meta = with lib; {
description = "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 ];
};
}