Files
nixpkgs/pkgs/by-name/li/libcpuid/package.nix
K900 cd9b05e26c libcpuid: enable building on ARM
Upstream supports both aarch32 and aarch64, only tested on aa64.
2026-05-01 07:45:33 +03:00

37 lines
811 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libcpuid";
version = "0.8.1";
src = fetchFromGitHub {
owner = "anrieff";
repo = "libcpuid";
rev = "v${finalAttrs.version}";
hash = "sha256-+/TTlGk1ePPTHrSTSZmPHT2h3gKs9ouCF4ElvLWHF/g=";
};
nativeBuildInputs = [ autoreconfHook ];
outputs = [
"out"
"dev"
];
meta = {
homepage = "https://libcpuid.sourceforge.net/";
description = "Small C library for CPU detection and feature extraction";
mainProgram = "cpuid_tool";
changelog = "https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog";
license = lib.licenses.bsd2;
maintainers = [
];
platforms = lib.platforms.x86 ++ lib.platforms.arm ++ lib.platforms.aarch64;
};
})