3
0
Fork 0
forked from mirrors/nixpkgs

thanos: remove bzr because 0.5.0 apparently doesn't need it anymore

I'll leave in the support for overrideModAttrs because that can be
useful for other go packages.
This commit is contained in:
Bas van Dijk 2019-06-16 15:38:57 +02:00
parent aefb0aa912
commit e753322c48

View file

@ -1,11 +1,4 @@
{ stdenv, runCommandNoCC, makeWrapper, buildGoModule, fetchFromGitHub, bazaar }:
let
bazaarNoCertValidation =
runCommandNoCC "bzr-no-cert-validation" {
inherit bazaar;
buildInputs = [ makeWrapper ];
} "makeWrapper $bazaar/bin/bzr $out/bin/bzr --add-flags -Ossl.cert_reqs=none";
in
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "thanos";
version = "0.5.0";
@ -17,12 +10,6 @@ buildGoModule rec {
sha256 = "0my0653mkb14m93s4x3nyf8khyljkvi5sq049lir8yqzqn7p1654";
};
overrideModAttrs = oldAttrs : {
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [
bazaarNoCertValidation
];
};
modSha256 = "1236cg00h8077fmvyddwjsnw85r69ac18b2chcpgzd85xdcaxavk";
subPackages = "cmd/thanos";