nixpkgs/pkgs/servers/etcd/deps.nix

29 lines
608 B
Nix
Raw Normal View History

2014-11-21 13:48:02 +01:00
# This file was generated by go2nix.
{ stdenv, lib, fetchFromGitHub }:
2014-06-23 10:55:46 +02:00
let
goDeps = [
{
root = "github.com/coreos/etcd";
src = fetchFromGitHub {
owner = "coreos";
repo = "etcd";
2014-11-21 13:48:02 +01:00
rev = "a817ca705b5a06b3d8c008e1a59f08895971cb1e";
sha256 = "1lksjrb7anh6z8ajnp8jpfz9mxmvm762acdczvc6h1h4997dz982";
2014-06-23 10:55:46 +02:00
};
}
];
in
stdenv.mkDerivation rec {
name = "go-deps";
buildCommand =
lib.concatStrings
(map (dep: ''
mkdir -p $out/src/`dirname ${dep.root}`
ln -s ${dep.src} $out/src/${dep.root}
'') goDeps);
}