2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcpuid";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.6.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anrieff";
|
|
|
|
repo = "libcpuid";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-Bq16UH4IUR7dU57bGHKq8P6JsjaB4arOJ4zFeNyxXSg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://libcpuid.sourceforge.net/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small C library for x86 CPU detection and feature extraction";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cpuid_tool";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ orivej artuuge ];
|
|
|
|
platforms = platforms.x86;
|
|
|
|
};
|
|
|
|
}
|