package elfutils {
	description = "utilities and libraries to handle ELF files and DWARF data";
	website = "https://sourceware.org/elfutils";
	anitya = 5679;

	version# = "0.195";
	source = remoteTar {
		url = "https://sourceware.org/elfutils/ftp/"+
			version+"/elfutils-"+version+".tar.bz2";
		checksum = "JrGnBD38w8Mj0ZxDw3fKlRBFcLvRKu8rcYnX35R9yTlUSYnzTazyLboG-a2CsJlu";
		compress = bzip2;
	};

	env = [
		"CC=cc" +
			// nonstandard glibc extension
			" -DFNM_EXTMATCH=0",
	];

	exec = make {
		configure = {
			"enable-deterministic-archives";
		};

		// nonstandard glibc extension
		check = nil;
	};

	inputs = [
		m4,
		pkg-config,

		zlib,
		bzip2,
		zstd,
		argp-standalone,
		musl-fts,
		musl-obstack,
		kernel-headers,
	];

	runtime = [
		zlib,
		bzip2,
		zstd,
		musl-fts,
		musl-obstack,
	];
}
