btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libcpuid / package.nix
blob077c441f5c80ea1bdd79dff57029927178ecede4
1 { lib, stdenv, fetchFromGitHub, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "libcpuid";
5   version = "0.7.0";
7   src = fetchFromGitHub {
8     owner = "anrieff";
9     repo = "libcpuid";
10     rev = "v${version}";
11     hash = "sha256-OZfsEk6sTTvwgAetjilSWbkfC1nMQnPH3oL0IeuqObA=";
12   };
14   nativeBuildInputs = [ autoreconfHook ];
16   meta = with lib; {
17     homepage = "https://libcpuid.sourceforge.net/";
18     description = "Small C library for x86 CPU detection and feature extraction";
19     mainProgram = "cpuid_tool";
20     changelog = "https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog";
21     license = licenses.bsd2;
22     maintainers = with maintainers; [ orivej artuuge ];
23     platforms = platforms.x86;
24   };