From 9f6e5886bb244b63e13d0836246ac4c7c0142579 Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Tue, 2 Oct 2018 16:16:19 -0700 Subject: [PATCH] envsubst: init at 1.1.0 --- pkgs/tools/misc/envsubst/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/tools/misc/envsubst/default.nix diff --git a/pkgs/tools/misc/envsubst/default.nix b/pkgs/tools/misc/envsubst/default.nix new file mode 100644 index 000000000000..86f78af25603 --- /dev/null +++ b/pkgs/tools/misc/envsubst/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, buildGoPackage }: + +buildGoPackage rec { + name = "envsubst-${version}"; + version = "1.1.0"; + + goPackagePath = "github.com/a8m/envsubst"; + src = fetchFromGitHub { + owner = "a8m"; + repo = "envsubst"; + rev = "v${version}"; + sha256 = "1d6nipagjn40n6iw1p3r489l2km5xjd5db9gbh1vc5sxc617l7yk"; + }; + + meta = with lib; { + description = "Environment variables substitution for Go"; + homepage = https://github.com/a8m/envsubst; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ nicknovitski ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6253c9331276..1eccc48ce3b7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1284,6 +1284,8 @@ with pkgs; envconsul = callPackage ../tools/system/envconsul { }; + envsubst = callPackage ../tools/misc/envsubst { }; + eschalot = callPackage ../tools/security/eschalot { }; esptool = callPackage ../tools/misc/esptool { };