evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / go / goawk / package.nix
blobdcd541d0bb76b4065fd014a3767d2459f2952569
1 { buildGoModule, fetchFromGitHub, lib, stdenv, gawk }:
3 buildGoModule rec {
4   pname = "goawk";
5   version = "1.28.0";
7   src = fetchFromGitHub {
8     owner = "benhoyt";
9     repo = "goawk";
10     rev = "v${version}";
11     hash = "sha256-3i8czhGFk8XqYaenKTmsvXt2kRSss++rS6amLxfM2DE=";
12   };
14   vendorHash = null;
16   nativeCheckInputs = [ gawk ];
18   postPatch = ''
19     substituteInPlace goawk_test.go \
20       --replace "TestCommandLine" "SkipCommandLine" \
21       --replace "TestDevStdout" "SkipDevStdout" \
22       --replace "TestFILENAME" "SkipFILENAME" \
23       --replace "TestWildcards" "SkipWildcards"
25     substituteInPlace interp/interp_test.go \
26       --replace "TestShellCommand" "SkipShellCommand"
27   '';
29   checkFlags = [
30     "-awk"
31     "${gawk}/bin/gawk"
32   ];
34   doCheck = (stdenv.system != "aarch64-darwin");
36   meta = with lib; {
37     description = "POSIX-compliant AWK interpreter written in Go";
38     homepage = "https://benhoyt.com/writings/goawk/";
39     license = licenses.mit;
40     mainProgram = "goawk";
41     maintainers = with maintainers; [ abbe ];
42   };