nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5}:
6
7buildGoModule rec {
8 pname = "azure-storage-azcopy";
9 version = "10.29.2";
10
11 src = fetchFromGitHub {
12 owner = "Azure";
13 repo = "azure-storage-azcopy";
14 tag = "v${version}";
15 hash = "sha256-wLErYkiN5V6aZx6Vztr3Gk5XB+aOo9de5QjEbwDLBXg=";
16 };
17
18 subPackages = [ "." ];
19
20 vendorHash = "sha256-Aq38kpgQ1NQQVkF0hjMLzvK8HvxfzYARbeWmsc54Ldg=";
21
22 doCheck = false;
23
24 postInstall = ''
25 ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy"
26 '';
27
28 meta = {
29 description = "New Azure Storage data transfer utility - AzCopy v10";
30 homepage = "https://github.com/Azure/azure-storage-azcopy";
31 changelog = "https://github.com/Azure/azure-storage-azcopy/releases/tag/v${version}";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ kashw2 ];
34 };
35}