mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
Merge pull request #68189 from avdv/wtf-no-vendored-deps
wtf: No longer use vendored dependencies
This commit is contained in:
commit
ff969fed98
@ -9,6 +9,10 @@ buildGoModule rec {
|
||||
pname = "wtf";
|
||||
version = "0.21.0";
|
||||
|
||||
overrideModAttrs = _oldAttrs : _oldAttrs // {
|
||||
preBuild = ''export GOPROXY="https://gocenter.io"'';
|
||||
};
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wtfutil";
|
||||
repo = pname;
|
||||
@ -16,21 +20,12 @@ buildGoModule rec {
|
||||
sha256 = "0sd8vrx7nak0by4whdmd9jzr66zm48knv1w1aqi90709fv98brm9";
|
||||
};
|
||||
|
||||
modSha256 = "1nqnjpkrjbb75yfbzh3v3vc4xy5a2aqm9jr40hwq589a4l9p5pw2";
|
||||
modSha256 = "0jgq9ql27x0kdp59l5drisl5v7v7sx2wy3zqjbr3bqyh3vdx19ic";
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
# As per https://github.com/wtfutil/wtf/issues/501, one of the
|
||||
# dependencies can't be fetched, so vendored dependencies should
|
||||
# be used instead
|
||||
modBuildPhase = ''
|
||||
runHook preBuild
|
||||
make build -mod=vendor
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/wtf" --prefix PATH : "${ncurses.dev}/bin"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user