package dtc {
	description = "The Device Tree Compiler";
	website = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git";
	anitya = 16911;

	version# = "1.8.1";
	source = remoteTar {
		url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/"+
			"dtc-v"+version+".tar.gz";
		checksum = "sPsg0G4AeTvNQfUqu3bWsVNuMT0ZGvb5MP1CaO-sQYLP_rUTk5sHiHMQ_FfLPN92";
		compress = gzip;
	};

	// works around buggy test:
	// fdtdump-runtest.sh /usr/src/dtc/tests/fdtdump.dts
	writable = true;
	chmod = true;

	exec = meson {
		setup = {
			"yaml": "disabled";
		};
	};

	inputs = [
		flex,
		bison,
		m4,
		coreutils,
		diffutils,
	];
}
