nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 638 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "envsubst"; 9 version = "1.4.3"; 10 11 src = fetchFromGitHub { 12 owner = "a8m"; 13 repo = "envsubst"; 14 rev = "v${version}"; 15 sha256 = "sha256-eByxrLf/F8Ih8v+0TunghF4m42TLPeRRFnqN3Ib6e14="; 16 }; 17 18 vendorHash = null; 19 20 postInstall = '' 21 install -Dm444 -t $out/share/doc/envsubst LICENSE *.md 22 ''; 23 24 meta = { 25 description = "Environment variables substitution for Go"; 26 homepage = "https://github.com/a8m/envsubst"; 27 license = lib.licenses.mit; 28 maintainers = with lib.maintainers; [ nicknovitski ]; 29 mainProgram = "envsubst"; 30 }; 31}