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