about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/cluster/docker-machine/default.nix
blob: 5a4f6b7db0e57d87e4846b98ffef0c8cc0a76d9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file was generated by go2nix.
{ lib, 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 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;
  };
}