File tree 1 file changed +18
-12
lines changed
1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change 1
- { lib , python2Packages , fetchurl } :
1
+ { stdenv , buildGoPackage , fetchFromGitHub } :
2
2
3
- python2Packages . buildPythonApplication rec {
3
+ buildGoPackage rec {
4
4
name = "cli53-${ version } " ;
5
- version = "0.4.4 " ;
5
+ version = "0.8.8 " ;
6
6
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" ;
10
14
} ;
11
15
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 ;
17
23
18
- meta = {
24
+ meta = with stdenv . lib ; {
19
25
description = "CLI tool for the Amazon Route 53 DNS service" ;
20
26
homepage = https://github.com/barnybug/cli53 ;
21
27
license = lib . licenses . mit ;
You can’t perform that action at this time.
0 commit comments