2017-10-01 03:57:18 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dep";
|
2019-09-05 20:05:05 +01:00
|
|
|
version = "0.5.4";
|
2017-10-01 03:57:18 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/golang/dep";
|
|
|
|
subPackages = [ "cmd/dep" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "golang";
|
|
|
|
repo = "dep";
|
2019-09-05 20:05:05 +01:00
|
|
|
sha256 = "02akzbjar1v01rdal746vk6mklff29yk2mqfyjk1zrs0mlg38ygd";
|
2017-10-01 03:57:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ("-ldflags=-s -w -X main.commitHash=${rev} -X main.version=${version}");
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/golang/dep";
|
2017-10-01 03:57:18 +01:00
|
|
|
description = "Go dependency management tool";
|
|
|
|
license = licenses.bsd3;
|
2018-07-26 09:01:42 +01:00
|
|
|
maintainers = with maintainers; [ carlsverre rvolosatovs ];
|
2017-10-01 03:57:18 +01:00
|
|
|
};
|
|
|
|
}
|