package gawk {
	description = "an implementation of awk with GNU extensions";
	website = "https://www.gnu.org/software/gawk";
	anitya = 868;

	block = "regressions introduced in 5.4.1, "+
		"does not even pass its own test suite";

	version# = "5.4.0";
	source = remoteTar {
		url = "https://ftpmirror.gnu.org/gnu/gawk/gawk-"+version+".tar.gz";
		checksum = "m0RkIolC-PI7EY5q8pcx5Y-0twlIW0Yp3wXXmV-QaHorSdf8BhZ7kW9F8iWomz0C";
		compress = gzip;
	};
	patches = [
		"musl-errno.patch",
		"broken-tests.patch",
	];

	exec = make {};

	inputs = [
		diffutils,
		util-linux,
	];
}
