2023-02-22 10:55:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoreconfHook, fetchpatch, argp-standalone }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iucode-tool";
|
|
|
|
version = "2.3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "iucode-tool";
|
|
|
|
repo = "iucode-tool";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "04dlisw87dd3q3hhmkqc5dd58cp22fzx3rzah7pvcyij135yjc3a";
|
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2023-02-22 10:55:15 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isMusl argp-standalone;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Intel® 64 and IA-32 processor microcode tool";
|
|
|
|
homepage = "https://gitlab.com/iucode-tool/iucode-tool";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|