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

	version# = "7.1";
	source = remoteGit {
		url = "https://github.com/strace/strace.git";
		tag = "v"+version;
		checksum = "vGwgAAi_mGsoICDYHK9Vhbn2hBR0JIoUEkCKhLA2JHFg8NFvGsYEWGIafdnsN0_v";
	};
	patches = [
		"tests-musl.patch",
		"skip-broken-tests.patch",
	];

	exec = make {
		generate = "tee .version .tarball-version <<< '"+version+"' > /dev/null && "+
			"./bootstrap";
		configure = {
			// tests broken on clang
			"disable-gcc-Werror";

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

	inputs = [
		bash,
		gawk,
		automake,

		kernel-headers,
	];
}
