24dd67dbf9
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
34 lines
973 B
Nix
34 lines
973 B
Nix
# This file was generated by go2nix.
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "machine-${version}";
|
|
version = "0.14.0";
|
|
|
|
goPackagePath = "github.com/docker/machine";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "docker";
|
|
repo = "machine";
|
|
sha256 = "0hd5sklmvkhhpfn318hq9w0f7x14165h1l2mdn9iv4447z1iibff";
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $bin/share/bash-completion/completions/
|
|
cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/
|
|
'';
|
|
|
|
postFixup = ''
|
|
mv $bin/bin/cmd $bin/bin/docker-machine
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|