forked from mirrors/nixpkgs
goawk: 1.18.0 -> 1.20.0
- Add dependency on gawk for running tests
This commit is contained in:
parent
e494a908e8
commit
a0de659121
|
@ -1,18 +1,20 @@
|
||||||
{ buildGoModule, fetchFromGitHub, lib, stdenv }:
|
{ buildGoModule, fetchFromGitHub, lib, stdenv, gawk }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "goawk";
|
pname = "goawk";
|
||||||
version = "1.18.0";
|
version = "1.20.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "benhoyt";
|
owner = "benhoyt";
|
||||||
repo = "goawk";
|
repo = "goawk";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-kRakQo18qOzrlvsAKtKTHEacUxDfoWyMmtiM7d5WCvQ=";
|
sha256 = "sha256-omUtMNB8VBTbihy+VksCduvOENhtPApPBwUIxjVL9fI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
||||||
|
|
||||||
|
checkInputs = [ gawk ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace goawk_test.go \
|
substituteInPlace goawk_test.go \
|
||||||
--replace "TestCommandLine" "SkipCommandLine" \
|
--replace "TestCommandLine" "SkipCommandLine" \
|
||||||
|
@ -24,6 +26,11 @@ buildGoModule rec {
|
||||||
--replace "TestShellCommand" "SkipShellCommand"
|
--replace "TestShellCommand" "SkipShellCommand"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkFlags = [
|
||||||
|
"-awk"
|
||||||
|
"${gawk}/bin/gawk"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = (stdenv.system != "aarch64-darwin");
|
doCheck = (stdenv.system != "aarch64-darwin");
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue