summary refs log tree commit diff
path: root/pkgs/by-name/li/libcpuid/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/li/libcpuid/package.nix')
-rw-r--r--pkgs/by-name/li/libcpuid/package.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/by-name/li/libcpuid/package.nix b/pkgs/by-name/li/libcpuid/package.nix
new file mode 100644
index 00000000000..56df13aabd2
--- /dev/null
+++ b/pkgs/by-name/li/libcpuid/package.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  pname = "libcpuid";
+  version = "0.6.4";
+
+  src = fetchFromGitHub {
+    owner = "anrieff";
+    repo = "libcpuid";
+    rev = "v${version}";
+    sha256 = "sha256-Zs5GKvSasdfLqo8oErDQNAuXRG27Bm9vNwyooqbol0Q=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+
+  meta = with lib; {
+    homepage = "https://libcpuid.sourceforge.net/";
+    description = "A small C library for x86 CPU detection and feature extraction";
+    changelog = "https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ orivej artuuge ];
+    platforms = platforms.x86;
+  };
+}