mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
30 lines
669 B
Nix
30 lines
669 B
Nix
{ 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;
|
|
};
|
|
}
|