at 22.05-pre 28 lines 717 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libcpuid"; 5 version = "0.5.1"; 6 7 src = fetchFromGitHub { 8 owner = "anrieff"; 9 repo = "libcpuid"; 10 rev = "v${version}"; 11 sha256 = "sha256-m10LdtwBk1Lx31AJ4HixEYaCkT7EHpF9+tOV1rSA6VU="; 12 }; 13 14 patches = [ 15 # Work around https://github.com/anrieff/libcpuid/pull/102. 16 ./stdint.patch 17 ]; 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 21 meta = with lib; { 22 homepage = "http://libcpuid.sourceforge.net/"; 23 description = "A small C library for x86 CPU detection and feature extraction"; 24 license = licenses.bsd2; 25 maintainers = with maintainers; [ orivej artuuge ]; 26 platforms = platforms.x86; 27 }; 28}