Merge pull request #181923 from wahjava/update-goawk

This commit is contained in:
ajs124 2022-07-31 14:37:55 +02:00 committed by GitHub
commit ee6ae66e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,20 @@
{ buildGoModule, fetchFromGitHub, lib, stdenv }:
{ buildGoModule, fetchFromGitHub, lib, stdenv, gawk }:
buildGoModule rec {
pname = "goawk";
version = "1.18.0";
version = "1.20.0";
src = fetchFromGitHub {
owner = "benhoyt";
repo = "goawk";
rev = "v${version}";
sha256 = "sha256-kRakQo18qOzrlvsAKtKTHEacUxDfoWyMmtiM7d5WCvQ=";
sha256 = "sha256-omUtMNB8VBTbihy+VksCduvOENhtPApPBwUIxjVL9fI=";
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
checkInputs = [ gawk ];
postPatch = ''
substituteInPlace goawk_test.go \
--replace "TestCommandLine" "SkipCommandLine" \
@ -24,6 +26,11 @@ buildGoModule rec {
--replace "TestShellCommand" "SkipShellCommand"
'';
checkFlags = [
"-awk"
"${gawk}/bin/gawk"
];
doCheck = (stdenv.system != "aarch64-darwin");
meta = with lib; {