2017-10-01 04:57:18 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dep";
|
2019-04-28 18:27:19 +02:00
|
|
|
version = "0.5.1";
|
2017-10-01 04:57:18 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/golang/dep";
|
|
|
|
subPackages = [ "cmd/dep" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "golang";
|
|
|
|
repo = "dep";
|
2019-04-28 18:27:19 +02:00
|
|
|
sha256 = "1a5vq5v3ikg6iysbywxr5hcjnbv76nzhk50rd3iq3v2fnyq38dv2";
|
2017-10-01 04:57:18 +02: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 21:18:10 +01:00
|
|
|
platforms = platforms.all;
|
2018-07-26 10:01:42 +02:00
|
|
|
maintainers = with maintainers; [ carlsverre rvolosatovs ];
|
2017-10-01 04:57:18 +02:00
|
|
|
};
|
|
|
|
}
|