at 24.11-pre 36 lines 1.2 kB view raw
1{ lib, stdenv, fetchFromGitLab, autoreconfHook, fetchpatch, argp-standalone }: 2 3stdenv.mkDerivation rec { 4 pname = "iucode-tool"; 5 version = "2.3.1"; 6 7 src = fetchFromGitLab { 8 owner = "iucode-tool"; 9 repo = "iucode-tool"; 10 rev = "v${version}"; 11 sha256 = "04dlisw87dd3q3hhmkqc5dd58cp22fzx3rzah7pvcyij135yjc3a"; 12 }; 13 14 patches = [ 15 # build fix for musl libc, pending upstream review 16 # https://gitlab.com/iucode-tool/iucode-tool/-/merge_requests/4 17 (fetchpatch { 18 url = "https://gitlab.com/iucode-tool/iucode-tool/-/commit/fda4aaa4727601dbe817fac001f234c19420351a.patch"; 19 hash = "sha256-BxYrXALpZFyJtFrgU5jFmzd1dIMPmpNgvYArgkwGt/w="; 20 }) 21 ]; 22 23 nativeBuildInputs = [ autoreconfHook ]; 24 buildInputs = lib.optional stdenv.hostPlatform.isMusl argp-standalone; 25 26 enableParallelBuilding = true; 27 28 meta = with lib; { 29 description = "Intel® 64 and IA-32 processor microcode tool"; 30 mainProgram = "iucode_tool"; 31 homepage = "https://gitlab.com/iucode-tool/iucode-tool"; 32 license = licenses.gpl2; 33 maintainers = with maintainers; [ peterhoeg ]; 34 platforms = [ "x86_64-linux" "i686-linux" ]; 35 }; 36}