package strace {
	description = "a diagnostic, debugging and instructional userspace utility";
	website = "https://strace.io";
	anitya = 4897;

	version# = "7.1";
	source = remoteFile {
		url = "https://strace.io/files/"+version+"/strace-"+version+".tar.xz";
		checksum = "PR-JLYgVLyzRqRCFi2yvfip_LRP_Cksd04d7H2oAx820qt_H-vj7rbW5xyzdMTat";
	};

	early = `
sed -i 's/off64_t/off_t/g' \
	tests/readahead.c \
	tests/sync_file_range.c \
	tests/sync_file_range2.c
sed -i 's/unsigned int msg_len;$/uint32_t msg_len;/g' \
	tests/nlattr.c
`;

	exec = make {
		configure = {
			// tests broken on clang
			"disable-gcc-Werror";

			"enable-mpers": "no";
		};

		// does not compile on musl
		skipCheck = true;
	};

	inputs = [
		xz,

		kernel-headers,
	];
}
