nixpkgs/pkgs/development/tools/godep/deps.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

2015-01-28 16:02:46 +01:00
# This file was generated by go2nix.
2016-06-01 12:37:29 +02:00
{ stdenv, lib, fetchgit }:
2015-01-28 16:02:46 +01:00
let
goDeps = [
{
root = "github.com/kr/fs";
src = fetchgit {
url = "https://github.com/kr/fs.git";
rev = "2788f0dbd16903de03cb8186e5c7d97b69ad387b";
sha256 = "1c0fipl4rsh0v5liq1ska1dl83v3llab4k6lm8mvrx9c4dyp71ly";
};
}
{
root = "github.com/tools/godep";
src = fetchgit {
url = "https://github.com/tools/godep.git";
2016-06-01 12:37:29 +02:00
rev = "f4edf338389e6e2bde0e8307886718133dc0613e";
sha256 = "1jdza8kwnzdsh3layqjzy9dnr92xdg3kfhnzvqkq3p50vsdims9w";
2015-01-28 16:02:46 +01:00
};
}
{
2016-06-01 12:37:29 +02:00
root = "github.com/kr/pretty";
2015-01-28 16:02:46 +01:00
src = fetchgit {
2016-06-01 12:37:29 +02:00
url = "https://github.com/kr/pretty";
rev = "f31442d60e51465c69811e2107ae978868dbea5c";
sha256 = "12nczwymikxmivb10q5ml5yxrwpz9s8p6k4vqig9g9707yhpxrkh";
2015-01-28 16:02:46 +01:00
};
}
{
2016-06-01 12:37:29 +02:00
root = "github.com/kr/text";
2015-01-28 16:02:46 +01:00
src = fetchgit {
2016-06-01 12:37:29 +02:00
url = "https://github.com/kr/text";
rev = "6807e777504f54ad073ecef66747de158294b639";
sha256 = "1wkszsg08zar3wgspl9sc8bdsngiwdqmg3ws4y0bh02sjx5a4698";
};
}
{
root = "github.com/pmezard/go-difflib";
src = fetchgit {
url = "https://github.com/pmezard/go-difflib";
rev = "f78a839676152fd9f4863704f5d516195c18fc14";
sha256 = "1bws3qyy572b62i3wkwfr1aw1g2nwcim2sy42jqsvh9pajjsf1vz";
2015-01-28 16:02:46 +01:00
};
}
{
root = "golang.org/x/tools";
src = fetchgit {
url = "https://go.googlesource.com/tools";
2016-06-01 12:37:29 +02:00
rev = "1f1b3322f67af76803c942fd237291538ec68262";
sha256 = "0h2yarcvcgg1px20r8n58psra1czv0sgly5gins2q3wp25iql6gj";
2015-01-28 16:02: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);
}