git.iko.soy/typeable/nixpkgs
on master help sign in
terraform-providers.gandi: init at 1.0.0 (#48223)
commite4f8d5c254d8cb94fa4b2da1ae785e9f3fdf7976 authorzimbatm <zimbatm@zimbatm.com> dateThu 11 Oct 2018, 21:53 (8 years ago) parentc81ca54
3 files changed+48
pkgs/applications/networking/cluster/terraform-providers/default.nix+1 pkgs/applications/networking/cluster/terraform-providers/gandi/default.nix+26 pkgs/applications/networking/cluster/terraform-providers/gandi/deps.nix+21
pkgs/applications/networking/cluster/terraform-providers/default.nix+1
@@ -22,6 +22,7 @@ let
2222 };
2323in
2424 {
25+ gandi = callPackage ./gandi {};
2526 ibm = callPackage ./ibm {};
2627 libvirt = callPackage ./libvirt {};
2728 } // lib.mapAttrs (n: v: toDrv v) list
pkgs/applications/networking/cluster/terraform-providers/gandi/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchFromGitHub, buildGoPackage }:
2+buildGoPackage rec {
3+ name = "terraform-provider-gandi-${version}";
4+ version = "1.0.0";
5+
6+ goPackagePath = "github.com/tiramiseb/terraform-provider-gandi";
7+ goDeps = ./deps.nix;
8+
9+ src = fetchFromGitHub {
10+ owner = "tiramiseb";
11+ repo = "terraform-provider-gandi";
12+ rev = "v${version}";
13+ sha256 = "0byydpqsimvnk11bh9iz8zlxbsmsk65w55pvkp18vjzqrhf4kyfv";
14+ };
15+
16+ # Terraform allow checking the provider versions, but this breaks
17+ # if the versions are not provided via file paths.
18+ postBuild = "mv go/bin/terraform-provider-gandi{,_v${version}}";
19+
20+ meta = with stdenv.lib; {
21+ description = "Terraform provider for the Gandi LiveDNS service.";
22+ homepage = "https://github.com/tiramiseb/terraform-provider-gandi";
23+ license = licenses.mpl20;
24+ maintainers = with maintainers; [ manveru ];
25+ };
26+}
pkgs/applications/networking/cluster/terraform-providers/gandi/deps.nixnew file+21
@@ -0,0 +1,21 @@
1+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2+[
3+ {
4+ goPackagePath = "github.com/hashicorp/terraform";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/hashicorp/terraform";
8+ rev = "27b720113ed5143a870ec151b3b7c9d955a09bc0";
9+ sha256 = "1f0hwdf2z68p0ll3pgrx949h09q52gcfaxap0zz52m7px98sfab4";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/tiramiseb/go-gandi-livedns";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/tiramiseb/go-gandi-livedns";
17+ rev = "4773a84f8ee7365ed21edc6cd0602aaf93e94e59";
18+ sha256 = "1i8s7yclrkhf974vs2splh5symzk0ym54px0bc216bq4ifzkwkqc";
19+ };
20+ }
21+]