package net-tools {
	description = "the collection of base networking utilities for Linux";
	anitya = 10231;

	version# = "2.10";
	source = remoteTar {
		url = "https://downloads.sourceforge.net/project/net-tools/"+
			"net-tools-"+version+".tar.xz";
		compress = xz;
		checksum = "YLmSUeHOYnhYhjvnisX6MQNkPJRzOIgSZBHRiWmBdzzziWYJVY6hOpM8eWnAZ11N";
	};
	patches = [
		"CVE-2025-46836.patch",
		"GHSA-h667-qrp8-gj58.patch",
		"f84cd22a921c25c56a6c194d4825dbd9ceea0e5f.patch",
		"GHSA-w7jq-cmw2-cq59.patch",
	];

	enterSource = true;
	writable = true;

	exec = make {
		chdir = false;
		configureName = "(set +o pipefail && yes '' | make config)";
		check = nil;
	};

	inputs = [
		bash,

		kernel-headers,
	];
}
