nixpkgs/pkgs/development/tools/dep/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
664 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchFromGitHub }:
2017-10-01 02:57:18 +00:00
buildGoPackage rec {
pname = "dep";
2019-09-05 19:05:05 +00:00
version = "0.5.4";
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";
2019-09-05 19:05:05 +00:00
sha256 = "02akzbjar1v01rdal746vk6mklff29yk2mqfyjk1zrs0mlg38ygd";
2017-10-01 02:57:18 +00:00
};
2021-08-26 03:31:57 +00:00
ldflags = [ "-s" "-w" "-X main.commitHash=${rev}" "-X main.version=${version}" ];
2017-10-01 02:57:18 +00:00
meta = with lib; {
homepage = "https://github.com/golang/dep";
2017-10-01 02:57:18 +00:00
description = "Go dependency management tool";
license = licenses.bsd3;
2018-07-26 08:01:42 +00:00
maintainers = with maintainers; [ carlsverre rvolosatovs ];
2017-10-01 02:57:18 +00:00
};
}