2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "dep";
|
|
|
|
version = "0.5.4";
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/golang/dep";
|
|
|
|
subPackages = [ "cmd/dep" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "golang";
|
|
|
|
repo = "dep";
|
|
|
|
sha256 = "02akzbjar1v01rdal746vk6mklff29yk2mqfyjk1zrs0mlg38ygd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ("-ldflags=-s -w -X main.commitHash=${rev} -X main.version=${version}");
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/golang/dep";
|
|
|
|
description = "Go dependency management tool";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ carlsverre rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|