wtf: Use Go 1.13 and drop `overrideModAttrs`
This no longer uses gocenter.io as a proxy, but the official Go module proxy instead.
This commit is contained in:
parent
859a933a5a
commit
ad4a1e0f85
|
@ -9,10 +9,6 @@ buildGoModule rec {
|
|||
pname = "wtf";
|
||||
version = "0.24.0";
|
||||
|
||||
overrideModAttrs = _oldAttrs : _oldAttrs // {
|
||||
preBuild = ''export GOPROXY="https://gocenter.io"'';
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wtfutil";
|
||||
repo = pname;
|
||||
|
@ -20,10 +16,12 @@ buildGoModule rec {
|
|||
sha256 = "0jz7hjcm0hfxcih2zplp47wx6lyvhhzj9ka4ljqrx0i4l7cm9ahs";
|
||||
};
|
||||
|
||||
modSha256 = "03vj6q1ln71r685k2j91ycj6xxrc688pj4bdc561693r20sr49xj";
|
||||
modSha256 = "04d8hvd90f7v853p23xcx38qz3ryv7kz7zjk9b131cjnd4mcv0sm";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -25325,9 +25325,7 @@ in
|
|||
|
||||
zimg = callPackage ../development/libraries/zimg { };
|
||||
|
||||
wtf = callPackage ../applications/misc/wtf {
|
||||
buildGoModule = buildGo112Module;
|
||||
};
|
||||
wtf = callPackage ../applications/misc/wtf { };
|
||||
|
||||
zk-shell = callPackage ../applications/misc/zk-shell { };
|
||||
|
||||
|
|
Loading…
Reference in New Issue