package firmware {
	description = "firmware blobs for use with the Linux kernel";
	website = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
	anitya = 141464;

	version# = "20260622";
	source = remoteGitLab {
		domain = "gitlab.com";
		suffix = "kernel-firmware/linux-firmware";
		ref = version;
		checksum = "gpytkDM58EVjaUuryOekcekh_rWsfuv3S7LQxopHlNlVGmMsuqNwfug4BjgTgizE";
	};

	// dedup creates temporary file
	writable = true;

	// does not use configure
	enterSource = true;

	env = [
		"HOME=/proc/nonexistent",
	];

	exec = make {
		omitDefaults = true;
		skipConfigure = true;
		inPlace = true;

		make = [
			"DESTDIR=/work/system",
			"install-zst",
		];

		// requires pre-commit
		skipCheck = true;

		install = "make " + jobsFlagE + " " + loadFlagE + " DESTDIR=/work/system dedup";
	};

	inputs = [
		parallel,
		rdfind,
		zstd,
		findutils,
		coreutils,
	];
}
