From 6db0ff627b94a7f0e0f4d734cbdd70301cf40969 Mon Sep 17 00:00:00 2001 From: Russell Sim Date: Sat, 27 Mar 2021 19:04:00 +0100 Subject: [PATCH] vendir: init at 0.17.0 Add vendir at 0.17.0 a tool for vendoring data --- pkgs/development/tools/vendir/default.nix | 24 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/vendir/default.nix diff --git a/pkgs/development/tools/vendir/default.nix b/pkgs/development/tools/vendir/default.nix new file mode 100644 index 000000000000..ff9523c717fa --- /dev/null +++ b/pkgs/development/tools/vendir/default.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "vendir"; + version = "0.17.0"; + + src = fetchFromGitHub { + owner = "vmware-tanzu"; + repo = "carvel-vendir"; + rev = "v${version}"; + sha256 = "14yd14z4666alwsn2jhcvg2kijvw4qjr4h3gikchiir38w520fs9"; + }; + + vendorSha256 = null; + + subPackages = [ "cmd/vendir" ]; + + meta = with lib; { + description = "CLI tool to vendor portions of git repos, github releases, helm charts, docker image contents, etc. declaratively"; + homepage = "https://carvel.dev/vendir/"; + license = licenses.asl20; + maintainers = with maintainers; [ russell ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4612a89430b0..21ec5f2482a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20578,6 +20578,8 @@ in v4l-utils = qt5.callPackage ../os-specific/linux/v4l-utils { }; + vendir = callPackage ../development/tools/vendir { }; + vndr = callPackage ../development/tools/vndr { }; windows = callPackages ../os-specific/windows {};