3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/goawk/default.nix
Ashish SHUKLA f4499924a4
goawk: 1.16.0 -> 1.17.1
Also while here unskip the tests which are passing now
2022-05-11 12:14:45 +05:30

31 lines
779 B
Nix

{ buildGoModule, fetchFromGitHub, lib, stdenv }:
buildGoModule rec {
pname = "goawk";
version = "1.17.1";
src = fetchFromGitHub {
owner = "benhoyt";
repo = "goawk";
rev = "v${version}";
sha256 = "sha256-aZc9HxTbC+u6JnJixSjcKUipwzkwq8DpaJuQv4spXDY=";
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
postPatch = ''
substituteInPlace interp/interp_test.go \
--replace "TestShellCommand" "SkipShellCommand"
'';
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 ];
};
}