nixpkgs/pkgs/development/tools/etcdctl/default.nix

31 lines
715 B
Nix
Raw Normal View History

2014-06-23 11:03:03 +02:00
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.4.3";
name = "etcdctl-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o etcdctl github.com/coreos/etcdctl
'';
installPhase = ''
2014-07-22 11:01:32 +02:00
mkdir -p $out/bin
2014-06-23 11:03:03 +02:00
mv etcdctl $out/bin
'';
meta = with stdenv.lib; {
description = "A simple command line client for etcd";
homepage = http://coreos.com/using-coreos/etcd/;
license = licenses.asl20;
maintainers = with maintainers; [ cstrahan ];
platforms = platforms.unix;
};
}