From 8c7af333dfaad1d866df4979ca8e4ab992078bdb Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Fri, 16 Feb 2018 11:27:14 -0800 Subject: [PATCH] govc: init at 0.16.0 --- pkgs/tools/virtualization/govc/default.nix | 24 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/virtualization/govc/default.nix diff --git a/pkgs/tools/virtualization/govc/default.nix b/pkgs/tools/virtualization/govc/default.nix new file mode 100644 index 000000000000..527c47ffc34c --- /dev/null +++ b/pkgs/tools/virtualization/govc/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, buildGoPackage }: + +buildGoPackage rec { + name = "govc-${version}"; + version = "0.16.0"; + + goPackagePath = "github.com/vmware/govmomi"; + + subPackages = [ "govc" ]; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "vmware"; + repo = "govmomi"; + sha256 = "09fllx7l2hsjrv1jl7g06xngjy0xwn5n5zng6x8dspgsl6kblyqp"; + }; + + meta = { + description = "A vSphere CLI built on top of govmomi"; + homepage = https://github.com/vmware/govmomi/tree/master/govc; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ nicknovitski ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 730e05255cb4..3be06d2ce4b1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2511,6 +2511,8 @@ with pkgs; gource = callPackage ../applications/version-management/gource { }; + govc = callPackage ../tools/virtualization/govc { }; + gpart = callPackage ../tools/filesystems/gpart { }; gparted = callPackage ../tools/misc/gparted { };