2015-01-28 15:02:46 +00:00
|
|
|
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-01 11:37:29 +01:00
|
|
|
version = "73";
|
2015-01-28 15:02:46 +00:00
|
|
|
name = "godep-${version}";
|
|
|
|
|
|
|
|
src = import ./deps.nix {
|
2016-06-01 11:37:29 +01:00
|
|
|
inherit stdenv lib fetchgit;
|
2015-01-28 15:02:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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; {
|
2016-06-01 11:37:29 +01:00
|
|
|
description = "Dependency tool for go";
|
2015-01-28 15:02:46 +00:00
|
|
|
homepage = https://github.com/tools/godep;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|