2017-06-18 10:25:13 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-06-18 10:25:13 +00:00
|
|
|
buildGoPackage rec {
|
2015-05-24 01:38:51 +00:00
|
|
|
name = "cli53-${version}";
|
2017-06-18 10:25:13 +00:00
|
|
|
version = "0.8.8";
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-06-18 10:25:13 +00:00
|
|
|
goPackagePath = "github.com/barnybug/cli53";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "barnybug";
|
|
|
|
repo = "cli53";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1hbx64rn25qzp2xlfwv8xaqyfcax9b6pl30j9vciw7cb346i84gc";
|
2015-05-24 01:38:51 +00:00
|
|
|
};
|
|
|
|
|
2017-06-18 10:25:13 +00:00
|
|
|
buildPhase = ''
|
|
|
|
pushd go/src/${goPackagePath}/cmd/cli53
|
|
|
|
go get .
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-06-18 10:25:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-24 01:38:51 +00:00
|
|
|
description = "CLI tool for the Amazon Route 53 DNS service";
|
|
|
|
homepage = https://github.com/barnybug/cli53;
|
2017-06-20 12:03:57 +00:00
|
|
|
license = lib.licenses.mit;
|
2015-05-24 01:38:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ benley ];
|
|
|
|
};
|
|
|
|
}
|