2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libcpuid";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anrieff";
|
|
|
|
repo = "libcpuid";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-nniSn6HjEWJsn1y7EwmI8Ln6CvfSryXjVfMEfGwuSkQ=";
|
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/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A small C library for x86 CPU detection and feature extraction";
|
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;
|
|
|
|
};
|
|
|
|
}
|