diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine')
6 files changed, 171 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/default.nix new file mode 100644 index 000000000000..93f5a85c33ad --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/default.nix @@ -0,0 +1,33 @@ +# This file was generated by go2nix. +{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }: + +buildGoPackage rec { + pname = "machine"; + version = "0.16.1"; + + goPackagePath = "github.com/docker/machine"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "docker"; + repo = "machine"; + sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy"; + }; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + pushd go/src/${goPackagePath}/contrib/completion + installShellCompletion --bash bash/* + installShellCompletion --zsh zsh/* + popd + ''; + + meta = with stdenv.lib; { + homepage = "https://docs.docker.com/machine/"; + description = "Docker Machine is a tool that lets you install Docker Engine on virtual hosts, and manage Docker Engine on the hosts"; + license = licenses.asl20; + maintainers = with maintainers; [ offline tailhook ]; + platforms = platforms.unix; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/hyperkit.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/hyperkit.nix new file mode 100644 index 000000000000..d05b34cd7de9 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/hyperkit.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, minikube }: + +buildGoModule rec { + inherit (minikube) version src nativeBuildInputs buildInputs vendorSha256 doCheck; + + pname = "docker-machine-hyperkit"; + + buildPhase = '' + make docker-machine-driver-hyperkit COMMIT=${src.rev} + ''; + + installPhase = '' + install out/docker-machine-driver-hyperkit -Dt $out/bin + ''; + + meta = with lib; { + homepage = "https://minikube.sigs.k8s.io/docs/drivers/hyperkit"; + description = "HyperKit driver for docker-machine"; + license = licenses.asl20; + maintainers = with maintainers; [ atkinschang ]; + platforms = platforms.darwin; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm-deps.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm-deps.nix new file mode 100644 index 000000000000..e321b2c1b0ac --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm-deps.nix @@ -0,0 +1,21 @@ +# This file was generated by go2nix. +[ + { + goPackagePath = "github.com/docker/machine"; + fetch = { + type = "git"; + url = "https://github.com/docker/machine"; + rev = "457c02d06a155827c1c4af9b5ab38c0b6b4e48ea"; + sha256 = "0hx5bhjc7q9ml6h6d2a5csqg6vqwjj68599q0cccw3pcfrb34gmd"; + }; + } + { + goPackagePath = "github.com/libvirt/libvirt-go"; + fetch = { + type = "git"; + url = "https://github.com/libvirt/libvirt-go"; + rev = "e9642325d747c353ca7b76b4893d5dbdc81c296f"; + sha256 = "1822b2kbwyxb2gigbiashcs7v4fsyw7k3sdlqh43ga0l6058fmhl"; + }; + } +] diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm.nix new file mode 100644 index 000000000000..024572ec3db9 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm.nix @@ -0,0 +1,28 @@ +# This file was generated by go2nix. +{ stdenv, buildGoPackage, fetchFromGitHub, libvirt, pkgconfig }: + +buildGoPackage rec { + pname = "docker-machine-kvm"; + version = "0.10.0"; + + goPackagePath = "github.com/dhiltgen/docker-machine-kvm"; + goDeps = ./kvm-deps.nix; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "dhiltgen"; + repo = "docker-machine-kvm"; + sha256 = "0ch4zwb6h7hnr5l3skj1daypvpyms2i666lbnmakpw1fw3zvjmgy"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libvirt ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/dhiltgen/docker-machine-kvm"; + description = "KVM driver for docker-machine"; + license = licenses.asl20; + maintainers = with maintainers; [ offline ]; + platforms = platforms.unix; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm2.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm2.nix new file mode 100644 index 000000000000..9ef43bed2eec --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/kvm2.nix @@ -0,0 +1,27 @@ +{ lib, buildGoModule, minikube }: + +buildGoModule rec { + inherit (minikube) version src nativeBuildInputs buildInputs vendorSha256 doCheck; + + pname = "docker-machine-kvm2"; + + postPatch = '' + sed -i '/GOARCH=$*/d' Makefile + ''; + + buildPhase = '' + make docker-machine-driver-kvm2 COMMIT=${src.rev} + ''; + + installPhase = '' + install out/docker-machine-driver-kvm2 -Dt $out/bin + ''; + + meta = with lib; { + homepage = "https://minikube.sigs.k8s.io/docs/drivers/kvm2"; + description = "KVM2 driver for docker-machine"; + license = licenses.asl20; + maintainers = with maintainers; [ tadfisher atkinschang ]; + platforms = platforms.linux; + }; +} diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/xhyve.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/xhyve.nix new file mode 100644 index 000000000000..a740d0486db5 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/cluster/docker-machine/xhyve.nix @@ -0,0 +1,39 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch, pkgconfig, cctools, Hypervisor, vmnet }: + +buildGoPackage rec { + pname = "docker-machine-xhyve"; + version = "0.4.0"; + + goPackagePath = "github.com/zchee/docker-machine-driver-xhyve"; + + # https://github.com/machine-drivers/docker-machine-driver-xhyve/pull/225 + patches = fetchpatch { + url = "https://github.com/machine-drivers/docker-machine-driver-xhyve/commit/546256494bf2ccc33e4125bf45f504b0e3027d5a.patch"; + sha256 = "1i8wxqccqkxvqrbsyd0g9s0kdskd8xi2jv0c1bji9aj4rq0a8cgz"; + }; + + preBuild = '' + make -C go/src/${goPackagePath} CC=${stdenv.cc}/bin/cc LIBTOOL=${cctools}/bin/libtool GIT_CMD=: lib9p + export CGO_CFLAGS=-I$(pwd)/go/src/${goPackagePath}/vendor/github.com/jceel/lib9p + export CGO_LDFLAGS=$(pwd)/go/src/${goPackagePath}/vendor/build/lib9p/lib9p.a + ''; + buildFlags = "--tags lib9p"; + + src = fetchFromGitHub { + rev = "v${version}"; + owner = "machine-drivers"; + repo = "docker-machine-driver-xhyve"; + sha256 = "0000v97fr8xc5b39v44hsa87wrbk4bcwyaaivxv4hxlf4vlgg863"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ Hypervisor vmnet ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/machine-drivers/docker-machine-driver-xhyve"; + description = "Xhyve driver for docker-machine"; + license = licenses.bsd3; + maintainers = with maintainers; [ periklis ]; + platforms = platforms.darwin; + }; +} |