2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, ncurses
|
2020-05-18 10:11:11 +01:00
|
|
|
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper }:
|
2020-05-01 09:45:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpu-x";
|
2022-05-25 17:17:10 +01:00
|
|
|
version = "4.3.1";
|
2020-05-01 09:45:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "X0rg";
|
|
|
|
repo = "CPU-X";
|
|
|
|
rev = "v${version}";
|
2022-05-25 17:17:10 +01:00
|
|
|
sha256 = "sha256-9oRNyspFmvIG63aJ8qyaVmi1GW1eW+Rg0+z8la3LuKA=";
|
2020-05-01 09:45:00 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook nasm makeWrapper ];
|
2020-05-01 09:45:00 +01:00
|
|
|
buildInputs = [
|
2020-05-18 10:11:11 +01:00
|
|
|
gtk3 ncurses libcpuid pciutils procps
|
2020-05-01 09:45:00 +01:00
|
|
|
];
|
|
|
|
|
2020-05-18 10:11:11 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cpu-x \
|
2021-01-15 05:42:41 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}
|
2020-05-18 10:11:11 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-01 09:45:00 +01:00
|
|
|
description = "Free software that gathers information on CPU, motherboard and more";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-04-29 06:21:13 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-05-01 09:45:00 +01:00
|
|
|
};
|
|
|
|
}
|