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

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

27 lines
652 B
Nix
Raw Normal View History

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 {
pname = "envsubst";
2023-04-18 01:50:05 +02:00
version = "1.4.2";
2018-10-03 01:16:19 +02:00
src = fetchFromGitHub {
owner = "a8m";
repo = "envsubst";
rev = "v${version}";
2023-04-18 01:50:05 +02:00
sha256 = "sha256-gfzqf/CXSwGXBK5VHJnepFZ1wB3WElpEp6ra9JI4WtY=";
2018-10-03 01:16:19 +02:00
};
2023-04-18 01:50:05 +02:00
vendorHash = "sha256-L0MbABgUniuI5NXc4ffBUsQRI716W/FiH38bGthpXzI=";
2021-09-05 10:21:47 +02:00
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";
homepage = "https://github.com/a8m/envsubst";
2018-10-03 01:16:19 +02:00
license = licenses.mit;
maintainers = with maintainers; [ nicknovitski ];
};
}