1{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 version = "73";
5 name = "godep-${version}";
6
7 src = import ./deps.nix {
8 inherit stdenv lib fetchgit;
9 };
10
11 buildInputs = [ go ];
12
13 buildPhase = ''
14 export GOPATH=$src
15 go build -v -o godep github.com/tools/godep
16 '';
17
18 installPhase = ''
19 mkdir -p $out/bin
20 mv godep $out/bin
21 '';
22
23 meta = with stdenv.lib; {
24 description = "Dependency tool for go";
25 homepage = https://github.com/tools/godep;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ offline ];
28 platforms = platforms.unix;
29 };
30}