1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/dep/default.nix

28 lines
722 B
Nix
Raw Normal View History

2017-10-01 03:57:18 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "dep-${version}";
2019-04-28 17:27:19 +01:00
version = "0.5.1";
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-04-28 17:27:19 +01:00
sha256 = "1a5vq5v3ikg6iysbywxr5hcjnbv76nzhk50rd3iq3v2fnyq38dv2";
2017-10-01 03:57:18 +01: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;
2018-07-26 09:01:42 +01:00
maintainers = with maintainers; [ carlsverre rvolosatovs ];
2017-10-01 03:57:18 +01:00
};
}