Skip to content

Commit c25b145

Browse files
committedJun 18, 2017
cli53: 0.4.4 -> 0.8.8
1 parent 770845d commit c25b145

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed
 

Diff for: ‎pkgs/tools/admin/cli53/default.nix

+18-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
{ lib, python2Packages, fetchurl }:
1+
{ stdenv, buildGoPackage, fetchFromGitHub }:
22

3-
python2Packages.buildPythonApplication rec {
3+
buildGoPackage rec {
44
name = "cli53-${version}";
5-
version = "0.4.4";
5+
version = "0.8.8";
66

7-
src = fetchurl {
8-
url = "mirror://pypi/c/cli53/${name}.tar.gz";
9-
sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
7+
goPackagePath = "github.com/barnybug/cli53";
8+
9+
src = fetchFromGitHub {
10+
owner = "barnybug";
11+
repo = "cli53";
12+
rev = version;
13+
sha256 = "1hbx64rn25qzp2xlfwv8xaqyfcax9b6pl30j9vciw7cb346i84gc";
1014
};
1115

12-
propagatedBuildInputs = with python2Packages; [
13-
argparse
14-
boto
15-
dns
16-
];
16+
buildPhase = ''
17+
pushd go/src/${goPackagePath}/cmd/cli53
18+
go get .
19+
popd
20+
'';
21+
22+
goDeps = ./deps.nix;
1723

18-
meta = {
24+
meta = with stdenv.lib; {
1925
description = "CLI tool for the Amazon Route 53 DNS service";
2026
homepage = https://github.com/barnybug/cli53;
2127
license = lib.licenses.mit;

0 commit comments

Comments
 (0)
Please sign in to comment.