1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00
nixpkgs/pkgs/by-name/iu/iucode-tool/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

47 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
fetchpatch,
argp-standalone,
}:
stdenv.mkDerivation rec {
pname = "iucode-tool";
version = "2.3.1";
src = fetchFromGitLab {
owner = "iucode-tool";
repo = "iucode-tool";
rev = "v${version}";
hash = "sha256-ajDpywgyerbvgern0b8T4jJUWisMzwrhwKO1g7iOtBE=";
};
patches = [
# build fix for musl libc, pending upstream review
# https://gitlab.com/iucode-tool/iucode-tool/-/merge_requests/4
(fetchpatch {
url = "https://gitlab.com/iucode-tool/iucode-tool/-/commit/fda4aaa4727601dbe817fac001f234c19420351a.patch";
hash = "sha256-BxYrXALpZFyJtFrgU5jFmzd1dIMPmpNgvYArgkwGt/w=";
})
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optional stdenv.hostPlatform.isMusl argp-standalone;
enableParallelBuilding = true;
meta = with lib; {
description = "Intel® 64 and IA-32 processor microcode tool";
mainProgram = "iucode_tool";
homepage = "https://gitlab.com/iucode-tool/iucode-tool";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ peterhoeg ];
platforms = [
"x86_64-linux"
"i686-linux"
];
};
}