mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
553e82a848
cpu-x: 5.0.3 -> 5.0.4
55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, ncurses
|
|
, libcpuid, pciutils, procps, wrapGAppsHook3, 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
|
|
}:
|
|
|
|
# Known issues:
|
|
# - The daemon can't be started from the GUI, because pkexec requires a shell
|
|
# registered in /etc/shells. The nix's bash is not in there when running
|
|
# cpu-x from nixpkgs.
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cpu-x";
|
|
version = "5.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "X0rg";
|
|
repo = "CPU-X";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-8jJP0gxH3B6qLrhKNa4P9ZfSjxaXTeBB1+UuadflLQo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 nasm makeWrapper ];
|
|
buildInputs = [
|
|
gtk3 ncurses libcpuid pciutils procps
|
|
vulkan-headers vulkan-loader glfw
|
|
opencl-headers ocl-icd
|
|
libXdmcp pcre util-linux
|
|
libselinux libsepol
|
|
libthai libdatrie libxkbcommon libepoxy
|
|
dbus at-spi2-core
|
|
libXtst
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cpu-x \
|
|
--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]} \
|
|
--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Free software that gathers information on CPU, motherboard and more";
|
|
mainProgram = "cpu-x";
|
|
homepage = "https://thetumultuousunicornofdarkness.github.io/CPU-X";
|
|
license = licenses.gpl3Plus;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ viraptor ];
|
|
};
|
|
}
|