From 0709d4eb320a0f6ffe59e5fa73a341663ba9cf66 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Mon, 18 Nov 2019 00:18:00 -0800 Subject: [PATCH] azure-storage-azcopy: 10.0.1 -> 10.3.2 --- pkgs/development/tools/azcopy/default.nix | 22 ++-- pkgs/development/tools/azcopy/deps.nix | 129 ---------------------- 2 files changed, 13 insertions(+), 138 deletions(-) delete mode 100644 pkgs/development/tools/azcopy/deps.nix diff --git a/pkgs/development/tools/azcopy/default.nix b/pkgs/development/tools/azcopy/default.nix index 403d0ab745a9..e3e85ffcd406 100644 --- a/pkgs/development/tools/azcopy/default.nix +++ b/pkgs/development/tools/azcopy/default.nix @@ -1,20 +1,24 @@ -{ stdenv, fetchFromGitHub, buildGoPackage }: +{ stdenv, fetchFromGitHub, buildGoModule }: -buildGoPackage rec { +buildGoModule rec { pname = "azure-storage-azcopy"; - version = "10.0.1-pre"; - revision = "10.0.1"; - goPackagePath = "github.com/Azure/azure-storage-azcopy"; - - goDeps= ./deps.nix; + version = "10.3.2"; src = fetchFromGitHub { owner = "Azure"; repo = "azure-storage-azcopy"; - rev = revision; - sha256 = "0v1qli01nnx81186q1d2556w457qkbwypq6yy89ns52pqg941arp"; + rev = "v${version}"; + sha256 = "0n4yns81kwwx725smsgqg8hc693ygqlzrgkqdrhrfszkpm205479"; }; + subPackages = [ "." ]; + + modSha256 = "07cy2zi7m2pkbfdcy659x4k5j2w60cmjy8kxv1dcii3dc6ls4bvb"; + + postInstall = '' + ln -rs "$out/bin/azure-storage-azcopy" "$out/bin/azcopy" + ''; + meta = with stdenv.lib; { maintainers = with maintainers; [ colemickens ]; license = licenses.mit; diff --git a/pkgs/development/tools/azcopy/deps.nix b/pkgs/development/tools/azcopy/deps.nix deleted file mode 100644 index cef400200d06..000000000000 --- a/pkgs/development/tools/azcopy/deps.nix +++ /dev/null @@ -1,129 +0,0 @@ -# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix) -[ - { - goPackagePath = "github.com/Azure/azure-pipeline-go"; - fetch = { - type = "git"; - url = "https://github.com/Azure/azure-pipeline-go"; - rev = "7571e8eb0876932ab505918ff7ed5107773e5ee2"; - sha256 = "0i8n7jna9prq3zdbj0bsr1ha271lgg9233n71dw8li5qsiyg8bs2"; - }; - } - { - goPackagePath = "github.com/Azure/azure-storage-blob-go"; - fetch = { - type = "git"; - url = "https://github.com/Azure/azure-storage-blob-go"; - rev = "197d1c0aea1b9eedbbaee0a1a32bf81e879bde80"; - sha256 = "0wslfah8x1i5l98ss4wxv47ddxfp8mbc90cnfi81v7qnf0bpjp2g"; - }; - } - { - goPackagePath = "github.com/Azure/azure-storage-file-go"; - fetch = { - type = "git"; - url = "https://github.com/Azure/azure-storage-file-go"; - rev = "9227fd295d972e4395fd601e6f48cee2f5cda02b"; - sha256 = "0sr5iqiddjs2lnma5ixrrdik9zciqqd74priivvpycgi3cyxyxyn"; - }; - } - { - goPackagePath = "github.com/Azure/go-autorest"; - fetch = { - type = "git"; - url = "https://github.com/Azure/go-autorest"; - rev = "39013ecb48eaf6ced3f4e3e1d95515140ce6b3cf"; - sha256 = "1cbf1ay68lghr4swy2a0asfcjpzkamvz1cqxpdm6691b76j2x6cm"; - }; - } - { - goPackagePath = "github.com/JeffreyRichter/enum"; - fetch = { - type = "git"; - url = "https://github.com/JeffreyRichter/enum"; - rev = "2567042f9cda26772f0afe08bab6e5105745f298"; - sha256 = "1d2sjjlp0r2ynk1fb3sb7dgbqzbq4czipb7ffm9zdmjbz0gp6crr"; - }; - } - { - goPackagePath = "github.com/dgrijalva/jwt-go"; - fetch = { - type = "git"; - url = "https://github.com/dgrijalva/jwt-go"; - rev = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"; - sha256 = "08m27vlms74pfy5z79w67f9lk9zkx6a9jd68k3c4msxy75ry36mp"; - }; - } - { - goPackagePath = "github.com/inconshreveable/mousetrap"; - fetch = { - type = "git"; - url = "https://github.com/inconshreveable/mousetrap"; - rev = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"; - sha256 = "1mn0kg48xkd74brf48qf5hzp0bc6g8cf5a77w895rl3qnlpfw152"; - }; - } - { - goPackagePath = "github.com/jiacfan/keychain"; - fetch = { - type = "git"; - url = "https://github.com/jiacfan/keychain"; - rev = "55285221316b0547171a4258015906e3a4da4721"; - sha256 = "0nfpmqmj33953awysp1948y6k28cmh4770q0i60jv88k35p10s56"; - }; - } - { - goPackagePath = "github.com/jiacfan/keyctl"; - fetch = { - type = "git"; - url = "https://github.com/jiacfan/keyctl"; - rev = "988d05162bc59cf7789c35af405be8f1599a87a3"; - sha256 = "1q4svv9z3s3n2x4ff8cyr53g5ln1yfrcmc3bvznhhwq190dhm94c"; - }; - } - { - goPackagePath = "github.com/kr/pretty"; - fetch = { - type = "git"; - url = "https://github.com/kr/pretty"; - rev = "73f6ac0b30a98e433b289500d779f50c1a6f0712"; - sha256 = "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp"; - }; - } - { - goPackagePath = "github.com/kr/text"; - fetch = { - type = "git"; - url = "https://github.com/kr/text"; - rev = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"; - sha256 = "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1"; - }; - } - { - goPackagePath = "github.com/spf13/cobra"; - fetch = { - type = "git"; - url = "https://github.com/spf13/cobra"; - rev = "ef82de70bb3f60c65fb8eebacbb2d122ef517385"; - sha256 = "1q1nsx05svyv9fv3fy6xv6gs9ffimkyzsfm49flvl3wnvf1ncrkd"; - }; - } - { - goPackagePath = "github.com/spf13/pflag"; - fetch = { - type = "git"; - url = "https://github.com/spf13/pflag"; - rev = "9a97c102cda95a86cec2345a6f09f55a939babf5"; - sha256 = "005598piihl3l83a71ahj10cpq9pbhjck4xishx1b4dzc02r9xr2"; - }; - } - { - goPackagePath = "gopkg.in/check.v1"; - fetch = { - type = "git"; - url = "https://github.com/go-check/check"; - rev = "788fd78401277ebd861206a03c884797c6ec5541"; - sha256 = "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a"; - }; - } -] \ No newline at end of file