{ lib, buildGoModule, fetchFromGitHub, }: # FIXME upstream: https://github.com/NixOS/nixpkgs/pull/447753 buildGoModule rec { pname = "terraform-backend"; version = "0.1.3"; src = fetchFromGitHub { owner = "nimbolus"; repo = "terraform-backend"; tag = "v${version}"; hash = "sha256-S3ih7dLSQs3xJMHyQyWy43OG1maizBPVT8IsrWcSRUM="; }; vendorHash = "sha256-5L8MNhjEPI3OOmtHdkB9ZQp02d7nzPp5h0/gVHTiCws="; ldflags = [ "-s" "-w" ]; meta = { description = "State backend server which implements the Terraform HTTP backend API with pluggable modules for authentication, storage, locking and state encryption"; homepage = "https://github.com/nimbolus/terraform-backend"; license = lib.licenses.bsd3; mainProgram = "cmd"; }; }