nixpkgs/pkgs/tools/misc/envsubst/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
682 B
Nix
Raw Normal View History

2021-09-05 08:21:47 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
2018-10-02 23:16:19 +00:00
2021-09-05 08:21:47 +00:00
buildGoModule rec {
pname = "envsubst";
2023-04-17 23:50:05 +00:00
version = "1.4.2";
2018-10-02 23:16:19 +00:00
src = fetchFromGitHub {
owner = "a8m";
repo = "envsubst";
rev = "v${version}";
2023-04-17 23:50:05 +00:00
sha256 = "sha256-gfzqf/CXSwGXBK5VHJnepFZ1wB3WElpEp6ra9JI4WtY=";
2018-10-02 23:16:19 +00:00
};
2023-04-17 23:50:05 +00:00
vendorHash = "sha256-L0MbABgUniuI5NXc4ffBUsQRI716W/FiH38bGthpXzI=";
2021-09-05 08:21:47 +00:00
postInstall = ''
install -Dm444 -t $out/share/doc/${pname} LICENSE *.md
'';
2018-10-02 23:16:19 +00:00
meta = with lib; {
description = "Environment variables substitution for Go";
homepage = "https://github.com/a8m/envsubst";
2018-10-02 23:16:19 +00:00
license = licenses.mit;
maintainers = with maintainers; [ nicknovitski ];
mainProgram = "envsubst";
2018-10-02 23:16:19 +00:00
};
}