2017-10-01 02:57:18 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "dep-${version}";
|
2018-01-25 16:52:10 +00:00
|
|
|
version = "0.4.1";
|
2017-10-01 02:57:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/golang/dep";
|
|
|
|
subPackages = [ "cmd/dep" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "golang";
|
|
|
|
repo = "dep";
|
2018-01-25 16:52:10 +00:00
|
|
|
sha256 = "0183xq5l4sinnclynv6xi85vmk69mqpy5wjfsgh8bxwziq3vkd7y";
|
2017-10-01 02:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ("-ldflags=-s -w -X main.commitHash=${rev} -X main.version=${version}");
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/golang/dep;
|
|
|
|
description = "Go dependency management tool";
|
|
|
|
license = licenses.bsd3;
|
2018-02-16 20:18:10 +00:00
|
|
|
platforms = platforms.all;
|
2017-10-01 02:57:18 +00:00
|
|
|
maintainers = [ maintainers.carlsverre ];
|
|
|
|
};
|
|
|
|
}
|