2016-09-17 01:15:54 +02:00
|
|
|
# This file was generated by go2nix.
|
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "machine";
|
2019-01-23 12:53:36 +01:00
|
|
|
version = "0.16.1";
|
2016-09-17 01:15:54 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/docker/machine";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "docker";
|
|
|
|
repo = "machine";
|
2019-01-23 12:53:36 +01:00
|
|
|
sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy";
|
2016-09-17 01:15:54 +02:00
|
|
|
};
|
|
|
|
|
2016-12-11 14:54:23 +01:00
|
|
|
postInstall = ''
|
2019-01-23 12:53:36 +01:00
|
|
|
mkdir -p \
|
|
|
|
$bin/share/bash-completion/completions/ \
|
|
|
|
$bin/share/zsh/site-functions/
|
2016-12-11 14:54:23 +01:00
|
|
|
|
2019-01-23 12:53:36 +01:00
|
|
|
cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/
|
|
|
|
cp go/src/github.com/docker/machine/contrib/completion/zsh/* $bin/share/zsh/site-functions/
|
2016-09-17 01:15:54 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
2016-09-30 16:41:07 +02:00
|
|
|
platforms = platforms.unix;
|
2016-09-17 01:15:54 +02:00
|
|
|
};
|
|
|
|
}
|