2016-09-16 23:15:54 +00:00
|
|
|
# This file was generated by go2nix.
|
2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
2016-09-16 23:15:54 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "machine";
|
2019-01-23 11:53:36 +00:00
|
|
|
version = "0.16.1";
|
2016-09-16 23:15:54 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/docker/machine";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "docker";
|
|
|
|
repo = "machine";
|
2019-01-23 11:53:36 +00:00
|
|
|
sha256 = "0xxzxi5v7ji9j2k7kxhi0ah91lfa7b9rg3nywgx0lkv8dlgp8kmy";
|
2016-09-16 23:15:54 +00:00
|
|
|
};
|
|
|
|
|
2020-04-26 03:16:50 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2016-12-11 13:54:23 +00:00
|
|
|
|
2020-04-26 03:16:50 +00:00
|
|
|
postInstall = ''
|
|
|
|
pushd go/src/${goPackagePath}/contrib/completion
|
|
|
|
installShellCompletion --bash bash/*
|
|
|
|
installShellCompletion --zsh zsh/*
|
|
|
|
popd
|
2016-09-16 23:15:54 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://docs.docker.com/machine/";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Docker Machine is a tool that lets you install Docker Engine on virtual hosts, and manage Docker Engine on the hosts";
|
2016-09-16 23:15:54 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ offline tailhook ];
|
2016-09-30 14:41:07 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-16 23:15:54 +00:00
|
|
|
};
|
|
|
|
}
|