depot/third_party/nixpkgs/pkgs/development/tools/misc/k2tf/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

24 lines
641 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "k2tf";
version = "0.7.0";
src = fetchFromGitHub {
owner = "sl1pm4t";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zkkRzCTZCvbwBj4oIhTo5d3PvqLMJPzT3zV9jU3PEJs=";
};
vendorSha256 = "sha256-iCRiBCppqCZrCUQipoVgc4jUnLkX6QVFjxI6sv6n7tU=";
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];
meta = with lib; {
description = "Kubernetes YAML to Terraform HCL converter";
homepage = "https://github.com/sl1pm4t/k2tf";
license = licenses.mpl20;
maintainers = [ maintainers.flokli ];
};
}