2021-09-18 10:52:07 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "envsubst";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "a8m";
|
|
|
|
repo = "envsubst";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-gfzqf/CXSwGXBK5VHJnepFZ1wB3WElpEp6ra9JI4WtY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-L0MbABgUniuI5NXc4ffBUsQRI716W/FiH38bGthpXzI=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2024-09-19 14:19:46 +00:00
|
|
|
install -Dm444 -t $out/share/doc/envsubst LICENSE *.md
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Environment variables substitution for Go";
|
|
|
|
homepage = "https://github.com/a8m/envsubst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "envsubst";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|