Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 951 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "tfupdate"; 9 version = "0.9.1"; 10 11 src = fetchFromGitHub { 12 owner = "minamijoyo"; 13 repo = "tfupdate"; 14 rev = "v${version}"; 15 sha256 = "sha256-hxg/hAfUjygBgkfql2ZpiskKPqwVmo2MZ4n9eod5Kn4="; 16 }; 17 18 vendorHash = "sha256-dWp9onewCiemk3AUTgiaVwnLuVVMMTk/6hCWDS5NS88="; 19 20 # Tests start http servers which need to bind to local addresses: 21 # panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted 22 __darwinAllowLocalNetworking = true; 23 24 meta = with lib; { 25 description = "Update version constraints in your Terraform configurations"; 26 mainProgram = "tfupdate"; 27 homepage = "https://github.com/minamijoyo/tfupdate"; 28 changelog = "https://github.com/minamijoyo/tfupdate/blob/${src.rev}/CHANGELOG.md"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ 31 Intuinewin 32 qjoly 33 ]; 34 }; 35}