nixpkgs/pkgs/development/tools/misc/k2tf/default.nix

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

25 lines
641 B
Nix
Raw Normal View History

2021-02-25 12:43:45 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "k2tf";
2021-10-26 22:08:47 +00:00
version = "0.6.3";
2021-02-25 12:43:45 +00:00
src = fetchFromGitHub {
owner = "sl1pm4t";
repo = pname;
rev = "v${version}";
2021-10-26 22:08:47 +00:00
sha256 = "sha256-75L8fcmZbG7PbZrF4cScRQjqbuu5eTnLIaDGzgF57/0=";
2021-02-25 12:43:45 +00:00
};
vendorSha256 = "sha256-YsSOw3G5ufxBn8Wu5J8md2Aaqhl0VJa7uB6ZzSPWo/A=";
2021-02-25 12:43:45 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];
2021-02-25 12:43:45 +00:00
meta = with lib; {
description = "Kubernetes YAML to Terraform HCL converter";
homepage = "https://github.com/sl1pm4t/k2tf";
license = licenses.mpl20;
maintainers = [ maintainers.flokli ];
};
}