2020-05-18 11:11:11 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gtk3, ncurses
|
|
|
|
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper }:
|
2020-05-01 10:45:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpu-x";
|
2020-05-18 11:11:11 +02:00
|
|
|
version = "4.0.0";
|
2020-05-01 10:45:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "X0rg";
|
|
|
|
repo = "CPU-X";
|
|
|
|
rev = "v${version}";
|
2020-05-18 11:11:11 +02:00
|
|
|
sha256 = "00xngmlayblvkg3l0rcfpxmnkkdz49ydh4smlhpii23gqii0rds3";
|
2020-05-01 10:45:00 +02:00
|
|
|
};
|
|
|
|
|
2020-05-18 11:11:11 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook nasm makeWrapper ];
|
2020-05-01 10:45:00 +02:00
|
|
|
buildInputs = [
|
2020-05-18 11:11:11 +02:00
|
|
|
gtk3 ncurses libcpuid pciutils procps
|
2020-05-01 10:45:00 +02:00
|
|
|
];
|
|
|
|
|
2020-05-18 11:11:11 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cpu-x \
|
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ stdenv.cc ]}
|
|
|
|
'';
|
|
|
|
|
2020-05-01 10:45:00 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Free software that gathers information on CPU, motherboard and more";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
};
|
|
|
|
}
|