package libaio {
	description = "kernel asynchronous I/O (AIO) support";
	website = "https://lse.sourceforge.net/io/aio.html";
	anitya = 1557;

	version# = "0.3.113";
	source = remoteTar {
		url = "https://pagure.io/libaio/archive/libaio-"+version+
			"/libaio-libaio-"+version+".tar.gz";
		compress = gzip;
		checksum = "vUATfur4I3D742vjRhiGMLYDCm-blbsymb3JTUiM3RV5HIEWi0wDBiPqh7jJpMWd";
	};

	enterSource = true;
	writable = true;
	chmod = true;

	env = [ "PATH=/system/sbin" ];
	bin = [ "bash" ];
	exec = make {
		chdir = false;
		configure = nil;
		preCheck = "rm harness/cases/20.t; "+ // flaky
			"CFLAGS='"+
			"-Wno-unknown-warning-option "+
			"-Wno-gnu-designator "+
			"-Wno-#warnings' ";
		check = [ "partcheck" ];
		install = "make prefix=/work/system install";
	};

	inputs = [
		bash,
		e2fsprogs,
		kernel-headers,
	];
}
