From 34e04bf401f89d34ebcf6675e6be63603c2ccc1e Mon Sep 17 00:00:00 2001 From: Tristan Helmich Date: Thu, 3 Nov 2016 11:14:55 +0100 Subject: [PATCH] azure-vhd-utils: init at 20160614 --- pkgs/tools/misc/azure-vhd-utils/default.nix | 27 +++++++++++++++++++ pkgs/tools/misc/azure-vhd-utils/deps.nix | 29 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 58 insertions(+) create mode 100644 pkgs/tools/misc/azure-vhd-utils/default.nix create mode 100644 pkgs/tools/misc/azure-vhd-utils/deps.nix diff --git a/pkgs/tools/misc/azure-vhd-utils/default.nix b/pkgs/tools/misc/azure-vhd-utils/default.nix new file mode 100644 index 00000000000..fcdd9a81d72 --- /dev/null +++ b/pkgs/tools/misc/azure-vhd-utils/default.nix @@ -0,0 +1,27 @@ +# This file was generated by go2nix. +{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +buildGoPackage rec { + name = "azure-vhd-utils-${version}"; + version = "20160614-${stdenv.lib.strings.substring 0 7 rev}"; + rev = "070db2d701a462ca2edcf89d677ed3cac309d8e8"; + + goPackagePath = "github.com/Microsoft/azure-vhd-utils"; + + src = fetchgit { + inherit rev; + url = "https://github.com/Microsoft/azure-vhd-utils"; + sha256 = "0b9kbavlb92rhnb1swwq8bdn4l9a994rmf1ywyfq4yc0kd3gnhgh"; + }; + + goDeps = ./deps.nix; + + meta = with stdenv.lib; { + homepage = https://github.com/Microsoft/azure-vhd-utils; + description = "Read, inspect and upload VHD files for Azure"; + longDescription = "Go package to read Virtual Hard Disk (VHD) file, a CLI interface to upload local VHD to Azure storage and to inspect a local VHD"; + license = licenses.mit; + platforms = platforms.unix; + }; +} + diff --git a/pkgs/tools/misc/azure-vhd-utils/deps.nix b/pkgs/tools/misc/azure-vhd-utils/deps.nix new file mode 100644 index 00000000000..d07af99d5e5 --- /dev/null +++ b/pkgs/tools/misc/azure-vhd-utils/deps.nix @@ -0,0 +1,29 @@ +[ + { + goPackagePath = "github.com/Azure/azure-sdk-for-go"; + fetch = { + type = "git"; + url = "https://github.com/Azure/azure-sdk-for-go"; + rev = "0884ebb4c8e7c980527348a4d134a65286042afc"; + sha256 = "0ixsq409akq1ff12352kp5gkbh370rpbw0m0pbwjr42cqvnzs9k0"; + }; + } + { + goPackagePath = "github.com/Microsoft/azure-vhd-utils-for-go"; + fetch = { + type = "git"; + url = "https://github.com/Microsoft/azure-vhd-utils-for-go"; + rev = "070db2d701a462ca2edcf89d677ed3cac309d8e8"; + sha256 = "0b9kbavlb92rhnb1swwq8bdn4l9a994rmf1ywyfq4yc0kd3gnhgh"; + }; + } + { + goPackagePath = "github.com/codegangsta/cli"; + fetch = { + type = "git"; + url = "https://github.com/codegangsta/cli"; + rev = "f614c177b70c0f0e92c368d623c8770bf337c5d6"; + sha256 = "1l70f07v0dsp2k2pm0lmr42fp4y72j1g0czf4fkxwhvgbly3al98"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 486c573b958..e51f081437f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -461,6 +461,8 @@ in azure-cli = nodePackages.azure-cli; + azure-vhd-utils = callPackage ../tools/misc/azure-vhd-utils { }; + ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { }; ec2_ami_tools = callPackage ../tools/virtualization/ec2-ami-tools { };