git.iko.soy/typeable/nixpkgs
on master help sign in
terraform-provider-nixos: init at 0.0.1
commit380dd22f7c896ae9ea03bfcb0a79e4ff1e89f9ee authorGraham Christensen <graham@grahamc.com> dateThu 8 Mar 2018, 16:50 (9 years ago) parentcdd0a24
2 files changed+25
pkgs/applications/networking/cluster/terraform-provider-nixos/default.nix+23 pkgs/top-level/all-packages.nix+2
pkgs/applications/networking/cluster/terraform-provider-nixos/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2+buildGoPackage rec {
3+ name = "terraform-provider-nixos-${version}";
4+ version = "0.0.1";
5+ goPackagePath = "github.com/tweag/terraform-provider-nixos";
6+ src = fetchFromGitHub {
7+ owner = "tweag";
8+ repo = "terraform-provider-nixos";
9+ sha256 = "00vz6qjq1pk39iqg4356b8g3c6slla9jifkv2knk46gc9q93q0lf";
10+ rev = "v${version}";
11+ };
12+
13+ # Terraform allow checking the provider versions, but this breaks
14+ # if the versions are not provided via file paths.
15+ postBuild = "mv go/bin/terraform-provider-nixos{,_v${version}}";
16+
17+ meta = with stdenv.lib; {
18+ description = "Terraform plugin for outputting NixOS configuration files from Terraform resources.";
19+ homepage = "https://github.com/tweag/terraform-provider-nixos";
20+ license = licenses.mpl20;
21+ maintainers = with maintainers; [ grahamc ];
22+ };
23+}
pkgs/top-level/all-packages.nix+2
@@ -20537,6 +20537,8 @@ with pkgs;
2053720537
2053820538 terraform-inventory = callPackage ../applications/networking/cluster/terraform-inventory {};
2053920539
20540+ terraform-provider-nixos = callPackage ../applications/networking/cluster/terraform-provider-nixos {};
20541+
2054020542 terraform-landscape = callPackage ../applications/networking/cluster/terraform-landscape {};
2054120543
2054220544 terragrunt = callPackage ../applications/networking/cluster/terragrunt {};