mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
30 lines
707 B
Nix
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";
|
|
};
|
|
}
|