mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
31 lines
716 B
Nix
31 lines
716 B
Nix
{ 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 = ''
|
|
ensureDir $out/bin
|
|
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;
|
|
};
|
|
}
|