1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/development/tools/dep/default.nix
Vincent Demeester 39676b5b01
dep: 0.3.1 -> 0.4.0
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-01-24 15:48:55 -08:00

28 lines
706 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "dep-${version}";
version = "0.4.0";
rev = "v${version}";
goPackagePath = "github.com/golang/dep";
subPackages = [ "cmd/dep" ];
src = fetchFromGitHub {
inherit rev;
owner = "golang";
repo = "dep";
sha256 = "1m325p1brzhqkabibc1ifvrsa589m0077z33l3hzq6ml88qm6nyp";
};
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;
platforms = platforms.linux;
maintainers = [ maintainers.carlsverre ];
};
}