mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
da5b47eba8
treewide: remove empty go vendor hashes
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ buildGoModule, fetchFromGitHub, lib, stdenv, gawk }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goawk";
|
|
version = "1.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "benhoyt";
|
|
repo = "goawk";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-I6KmNPFD8kkYDyek8lR1ZS7biPA/LYGwJqMoA2fG7Wg=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
nativeCheckInputs = [ gawk ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace goawk_test.go \
|
|
--replace "TestCommandLine" "SkipCommandLine" \
|
|
--replace "TestDevStdout" "SkipDevStdout" \
|
|
--replace "TestFILENAME" "SkipFILENAME" \
|
|
--replace "TestWildcards" "SkipWildcards"
|
|
|
|
substituteInPlace interp/interp_test.go \
|
|
--replace "TestShellCommand" "SkipShellCommand"
|
|
'';
|
|
|
|
checkFlags = [
|
|
"-awk"
|
|
"${gawk}/bin/gawk"
|
|
];
|
|
|
|
doCheck = (stdenv.system != "aarch64-darwin");
|
|
|
|
meta = with lib; {
|
|
description = "A POSIX-compliant AWK interpreter written in Go";
|
|
homepage = "https://benhoyt.com/writings/goawk/";
|
|
license = licenses.mit;
|
|
mainProgram = "goawk";
|
|
maintainers = with maintainers; [ abbe ];
|
|
};
|
|
}
|