nixpkgs/pkgs/applications/networking/cluster/docker-machine/default.nix

34 lines
973 B
Nix
Raw Normal View History

2016-09-17 00:15:54 +01:00
# This file was generated by go2nix.
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "machine-${version}";
2017-03-07 03:54:58 +00:00
version = "0.10.0";
2016-09-17 00:15:54 +01:00
goPackagePath = "github.com/docker/machine";
src = fetchFromGitHub {
rev = "v${version}";
owner = "docker";
repo = "machine";
2017-03-07 03:54:58 +00:00
sha256 = "1ik0jbp8zqzmg8w1fnf82gdlwrvw4nl40lmins7h8y0q6psrp6gc";
2016-09-17 00:15:54 +01:00
};
2016-12-11 13:54:23 +00:00
postInstall = ''
mkdir -p $bin/share/bash-completion/completions/
cp go/src/github.com/docker/machine/contrib/completion/bash/* $bin/share/bash-completion/completions/
'';
2016-09-17 00:15:54 +01:00
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 ];
2016-09-30 15:41:07 +01:00
platforms = platforms.unix;
2016-09-17 00:15:54 +01:00
};
}