1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/servers/etcd/deps.nix

29 lines
608 B
Nix
Raw Normal View History

2014-11-21 12:48:02 +00:00
# This file was generated by go2nix.
{ stdenv, lib, fetchFromGitHub }:
2014-06-23 09:55:46 +01:00
let
goDeps = [
{
root = "github.com/coreos/etcd";
src = fetchFromGitHub {
owner = "coreos";
repo = "etcd";
2014-12-29 00:53:49 +00:00
rev = "221abdcb3b755b36d1e7d70149f6de3450351619";
sha256 = "1wkd238ap9gp5irrb3f6nnh83rzizwfrfac76j0dvqdka35l247k";
2014-06-23 09:55:46 +01: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);
}