summary refs log tree commit diff
path: root/pkgs/servers/etcd/default.nix
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-06-23 04:55:46 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2014-06-23 04:55:46 -0400
commitb6df637e86d2ff0861d38bc25613c0f62dd302c1 (patch)
treebb5e9a94e936fb200fd6731940ad63a46086a5a3 /pkgs/servers/etcd/default.nix
parent7301dd44dea6778e301c1ece6c2dc7181280d4e9 (diff)
downloadnixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar.gz
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar.bz2
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar.lz
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar.xz
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.tar.zst
nixlib-b6df637e86d2ff0861d38bc25613c0f62dd302c1.zip
add etcd package
Diffstat (limited to 'pkgs/servers/etcd/default.nix')
-rw-r--r--pkgs/servers/etcd/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/servers/etcd/default.nix b/pkgs/servers/etcd/default.nix
new file mode 100644
index 000000000000..1fb21f2b8ab6
--- /dev/null
+++ b/pkgs/servers/etcd/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  version = "0.4.3";
+  name = "etcd-${version}";
+
+  src = import ./deps.nix {
+    inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
+  };
+
+  buildInputs = [ go ];
+
+  buildPhase = ''
+    export GOPATH=$src
+    go build -v -o etcd github.com/coreos/etcd
+  '';
+
+  installPhase = ''
+    ensureDir $out/bin
+    mv etcd $out/bin/etcd
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A highly-available key value store for shared configuration and service discovery";
+    homepage = http://coreos.com/using-coreos/etcd/;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ cstrahan ];
+    platforms = platforms.unix;
+  };
+}