2021-09-05 10:21:47 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-10-03 01:16:19 +02:00
|
|
|
|
2021-09-05 10:21:47 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "envsubst";
|
2020-06-26 09:54:23 +02:00
|
|
|
version = "1.2.0";
|
2018-10-03 01:16:19 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "a8m";
|
|
|
|
repo = "envsubst";
|
|
|
|
rev = "v${version}";
|
2020-06-26 09:54:23 +02:00
|
|
|
sha256 = "0zkgjdlw3d5xh7g45bzxqspxr61ljdli8ng4a1k1gk0dls4sva8n";
|
2018-10-03 01:16:19 +02:00
|
|
|
};
|
|
|
|
|
2021-09-05 10:21:47 +02:00
|
|
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} LICENSE *.md
|
|
|
|
'';
|
|
|
|
|
2018-10-03 01:16:19 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Environment variables substitution for Go";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/a8m/envsubst";
|
2018-10-03 01:16:19 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
};
|
|
|
|
}
|