package terraform-provider-vpsadmin

This commit is contained in:
zimbatm 2020-04-05 20:38:20 +02:00
parent 8d9d07a4fc
commit 9ee13494a8
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
5 changed files with 48 additions and 22 deletions

View file

@ -5,7 +5,7 @@ let
pkgs = import sources.nixpkgs {
inherit system;
config = {};
overlays = [ (import ./overlay.nix) ];
overlays = import ./overlays.nix;
};
in
pkgs

View file

@ -1,21 +0,0 @@
let
nix-community-infra = pkgs: {
inherit (pkgs)
git-crypt
niv
nixops
;
terraform = pkgs.terraform.withPlugins (
p: [
p.cloudflare
]
);
};
overlay = self: super: {
sources = import ./sources.nix;
nix-community-infra = nix-community-infra super;
};
in
overlay

27
nix/overlays.nix Normal file
View file

@ -0,0 +1,27 @@
let
nix-community-infra = pkgs: rec {
inherit (pkgs)
git-crypt
niv
nixops
;
terraform-provider-vpsadmin =
pkgs.callPackage ./nix/terraform-provider-vpsadmin.nix {};
terraform = pkgs.terraform.withPlugins (
p: [
p.cloudflare
terraform-provider-vpsadmin
]
);
};
in
[
(self: super: { sources = import ./sources.nix; })
(self: super: {
nix-community-infra = nix-community-infra super;
})
]

View file

@ -70,5 +70,17 @@
"type": "tarball",
"url": "https://github.com/ElvishJerricco/simple-hydra/archive/0d28b0b66136082d0cbfd90ede4436a580e3e8d0.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"terraform-provider-vpsadmin": {
"branch": "master",
"description": "Terraform provider for vpsAdmin",
"homepage": null,
"owner": "vpsfreecz",
"repo": "terraform-provider-vpsadmin",
"rev": "bf2d3ffa6abe5b6dfdb83dcf9b13a7cd54e4fa1c",
"sha256": "1vny6w9arbbra04bjjafisaswinm93ic1phy59l0g78sqf6x3a7v",
"type": "tarball",
"url": "https://github.com/vpsfreecz/terraform-provider-vpsadmin/archive/bf2d3ffa6abe5b6dfdb83dcf9b13a7cd54e4fa1c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}

View file

@ -0,0 +1,8 @@
{ buildGoModule, fetchFromGitHub, sources }:
buildGoModule {
pname = "terraform-provider-vpsadmin";
version = "latest";
src = sources.terraform-provider-vpsadmin;
modSha256 = "sha256-gz+t50uHFj4BQnJg6kOJI/joJVE+usLpVzTqziek2wY=";
subPackages = [ "." ];
}