package libtirpc {
	description = "a port of Suns Transport-Independent RPC library to Linux";
	website = "https://sourceforge.net/projects/libtirpc";
	anitya = 1740;

	version# = "1.3.7";
	source = remoteGit {
		url = "git://linux-nfs.org/~steved/libtirpc";
		tag = "libtirpc-"+join {
			elems = split {
				s = version;
				sep = ".";
				n = 3;
			};
			sep = "-";
		};
		checksum = "nzFfu7LNvnSNiNAryD1vtnNWnU-Xqee8KqfXUKoBf5yjb5-dkeRkYuRijdCoYLof";
	};

	exec = make {
		generate = "sh -e ./bootstrap";
		configure = {
			"CFLAGS": `"$(pkgconf --cflags libbsd-overlay) ${CFLAGS:-}"`;
			"disable-gssapi";
		};
	};

	inputs = [
		automake,
		libtool,
		pkgconf,

		libbsd,
		kernel-headers,
	];
}
