nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, lib, fetchFromGitHub, buildGoModule }:
2
3buildGoModule rec {
4 pname = "azure-storage-azcopy";
5 version = "10.18.1";
6
7 src = fetchFromGitHub {
8 owner = "Azure";
9 repo = "azure-storage-azcopy";
10 rev = "v${version}";
11 sha256 = "sha256-Yy6A2lNxF3aHD6Jw/dnLt1MFiFQ9+U+cB4wVK/dWbmE=";
12 };
13
14 subPackages = [ "." ];
15
16 vendorHash = "sha256-F+tUsChcknI4j5/IM1FqMKsFmGHEKjthjzSitMPyc44=";
17
18 doCheck = false;
19
20 postInstall = ''
21 ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
22 '';
23
24 meta = with lib; {
25 broken = stdenv.isDarwin;
26 maintainers = with maintainers; [ colemickens ];
27 license = licenses.mit;
28 description = "The new Azure Storage data transfer utility - AzCopy v10";
29 };
30}