1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/development/tools/godep/default.nix
2016-06-01 11:40:24 +01:00

31 lines
647 B
Nix

{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "73";
name = "godep-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit;
};
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 = "Dependency tool for go";
homepage = https://github.com/tools/godep;
license = licenses.bsd3;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}