mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
37 lines
1.1 KiB
Nix
37 lines
1.1 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}";
|
|
sha256 = "04dlisw87dd3q3hhmkqc5dd58cp22fzx3rzah7pvcyij135yjc3a";
|
|
};
|
|
|
|
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.gpl2;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
};
|
|
}
|