2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, ncurses
|
2022-08-29 08:18:32 +00:00
|
|
|
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper
|
|
|
|
, opencl-headers, ocl-icd
|
|
|
|
, vulkan-headers, vulkan-loader, glfw
|
|
|
|
, libXdmcp, pcre, util-linux
|
|
|
|
, libselinux, libsepol
|
|
|
|
, libthai, libdatrie, libxkbcommon, libepoxy
|
|
|
|
, dbus, at-spi2-core
|
|
|
|
, libXtst
|
|
|
|
}:
|
2020-05-01 08:45:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpu-x";
|
2022-10-24 09:56:14 +00:00
|
|
|
version = "4.5.1";
|
2020-05-01 08:45:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "X0rg";
|
|
|
|
repo = "CPU-X";
|
|
|
|
rev = "v${version}";
|
2022-10-24 09:56:14 +00:00
|
|
|
sha256 = "sha256-rmRfKw2KMLsO3qfy2QznCIugvM2CLSxBUDgIzONYULk=";
|
2020-05-01 08:45:00 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook nasm makeWrapper ];
|
2020-05-01 08:45:00 +00:00
|
|
|
buildInputs = [
|
2020-05-18 09:11:11 +00:00
|
|
|
gtk3 ncurses libcpuid pciutils procps
|
2022-08-29 08:18:32 +00:00
|
|
|
vulkan-headers vulkan-loader glfw
|
|
|
|
opencl-headers ocl-icd
|
|
|
|
libXdmcp pcre util-linux
|
|
|
|
libselinux libsepol
|
|
|
|
libthai libdatrie libxkbcommon libepoxy
|
|
|
|
dbus at-spi2-core
|
|
|
|
libXtst
|
2020-05-01 08:45:00 +00:00
|
|
|
];
|
|
|
|
|
2020-05-18 09:11:11 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cpu-x \
|
2022-08-29 08:18:32 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]} \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
|
2020-05-18 09:11:11 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-01 08:45:00 +00:00
|
|
|
description = "Free software that gathers information on CPU, motherboard and more";
|
|
|
|
homepage = src.meta.homepage;
|
2022-08-29 08:18:32 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-05-01 08:45:00 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-08-29 08:18:32 +00:00
|
|
|
maintainers = with maintainers; [ viraptor ];
|
2020-05-01 08:45:00 +00:00
|
|
|
};
|
|
|
|
}
|