diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-04-08 15:05:36 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2022-05-10 11:51:48 +0000 |
commit | 7ac2961ee3e212ee69ea5176fcc28f17ba354072 (patch) | |
tree | 499566341b0ee19edad589a74d6e0510b52f18ce /pkgs/applications/networking/cluster/terraform-inventory/default.nix | |
parent | 117f62e72ef58431d73ad6e903b71938ee13bc61 (diff) | |
download | nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar.gz nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar.bz2 nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar.lz nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar.xz nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.tar.zst nixpkgs-7ac2961ee3e212ee69ea5176fcc28f17ba354072.zip |
terraform-inventory: 0.7-pre -> 0.10
Diffstat (limited to 'pkgs/applications/networking/cluster/terraform-inventory/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/terraform-inventory/default.nix | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/applications/networking/cluster/terraform-inventory/default.nix b/pkgs/applications/networking/cluster/terraform-inventory/default.nix index 085b504314e..783f9c79bb7 100644 --- a/pkgs/applications/networking/cluster/terraform-inventory/default.nix +++ b/pkgs/applications/networking/cluster/terraform-inventory/default.nix @@ -1,22 +1,25 @@ -{ lib, buildGoPackage, fetchFromGitHub}: +{ lib, buildGoModule, fetchFromGitHub, testers, terraform-inventory }: -buildGoPackage rec { +buildGoModule rec { pname = "terraform-inventory"; - version = "0.7-pre"; - rev = "v${version}"; - - goPackagePath = "github.com/adammck/terraform-inventory"; - - subPackages = [ "./" ]; + version = "0.10"; src = fetchFromGitHub { - inherit rev; owner = "adammck"; repo = "terraform-inventory"; - sha256 = "0wwyi2nfyn3wfpmvj8aabn0cjba0lpr5nw3rgd6qdywy7sc3rmb1"; + rev = "v${version}"; + sha256 = "sha256-gkSDxcBoYmCBzkO8y1WKcRtZdfl8w5qVix0zbyb4Myo="; }; - goDeps = ./deps.nix; + vendorSha256 = "sha256-pj9XLzaGU1PuNnpTL/7XaKJZUymX+i8hFMroZtHIqTc="; + + ldflags = [ "-s" "-w" "-X main.build_version=${version}" ]; + + doCheck = false; + + passthru.tests.version = testers.testVersion { + package = terraform-inventory; + }; meta = with lib; { homepage = "https://github.com/adammck/terraform-inventory"; |