package bison {
	description = "a general-purpose parser generator";
	website = "https://www.gnu.org/software/bison";
	anitya = 193;

	version# = "3.8.2";
	source = remoteTar {
		url = "https://ftpmirror.gnu.org/gnu/bison/bison-"+version+".tar.gz";
		checksum = "BhRM6K7URj1LNOkIDCFDctSErLS-Xo5d9ba9seg10o6ACrgC1uNhED7CQPgIY29Y";
		compress = gzip;
	};

	// awk dependency loop
	toyboxEarly = true;

	exec = make {
		check = [
			"TESTSUITEFLAGS=" + jobsFlagE + "' " + skipGNUTests {
				tests = [
					// GNU-isms not implemented in toybox
					168, 170, 623,
					// clang miscompiles (SIGILL)
					764,
				];
			} + "'",
			"check",
		];
	};

	inputs = [ m4 ];
}
