mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
29 lines
608 B
Nix
29 lines
608 B
Nix
# This file was generated by go2nix.
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
let
|
|
goDeps = [
|
|
{
|
|
root = "github.com/coreos/etcd";
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "etcd";
|
|
rev = "221abdcb3b755b36d1e7d70149f6de3450351619";
|
|
sha256 = "1wkd238ap9gp5irrb3f6nnh83rzizwfrfac76j0dvqdka35l247k";
|
|
};
|
|
}
|
|
];
|
|
|
|
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);
|
|
}
|