# This file was generated by go2nix.
{ stdenv, lib, fetchFromGitHub }:

let
  goDeps = [
    {
      root = "github.com/coreos/flannel";
      src = fetchFromGitHub {
        owner = "coreos";
        repo = "flannel";
        rev = "cd584fa5e1545ae86c965588e81ceb24455e980d";
        sha256 = "1f7x6a2c8ix6j5y1r0dq56b58bl2rs2ycbdqb9fz5zv1zk2w20rd";
      };
    }
  ];

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);
}
