mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
37 lines
811 B
Nix
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;
|
|
};
|
|
})
|