mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
Merge pull request #36569 from grahamc/terraform-provider-nixos
terraform-provider-nixos: init at 0.0.1
This commit is contained in:
commit
e76825a9cf
|
@ -0,0 +1,23 @@
|
|||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
||||
buildGoPackage rec {
|
||||
name = "terraform-provider-nixos-${version}";
|
||||
version = "0.0.1";
|
||||
goPackagePath = "github.com/tweag/terraform-provider-nixos";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tweag";
|
||||
repo = "terraform-provider-nixos";
|
||||
sha256 = "00vz6qjq1pk39iqg4356b8g3c6slla9jifkv2knk46gc9q93q0lf";
|
||||
rev = "v${version}";
|
||||
};
|
||||
|
||||
# Terraform allow checking the provider versions, but this breaks
|
||||
# if the versions are not provided via file paths.
|
||||
postBuild = "mv go/bin/terraform-provider-nixos{,_v${version}}";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Terraform plugin for outputting NixOS configuration files from Terraform resources.";
|
||||
homepage = "https://github.com/tweag/terraform-provider-nixos";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ grahamc ];
|
||||
};
|
||||
}
|
|
@ -20805,6 +20805,8 @@ with pkgs;
|
|||
|
||||
terraform-inventory = callPackage ../applications/networking/cluster/terraform-inventory {};
|
||||
|
||||
terraform-provider-nixos = callPackage ../applications/networking/cluster/terraform-provider-nixos {};
|
||||
|
||||
terraform-landscape = callPackage ../applications/networking/cluster/terraform-landscape {};
|
||||
|
||||
terraform-provider-libvirt = callPackage ../applications/networking/cluster/terraform-provider-libvirt {};
|
||||
|
|
Loading…
Reference in a new issue