depot/third_party/nixpkgs/pkgs/applications/misc/cpu-x/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

32 lines
893 B
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, gtk3, ncurses
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper }:
stdenv.mkDerivation rec {
pname = "cpu-x";
version = "4.0.0";
src = fetchFromGitHub {
owner = "X0rg";
repo = "CPU-X";
rev = "v${version}";
sha256 = "00xngmlayblvkg3l0rcfpxmnkkdz49ydh4smlhpii23gqii0rds3";
};
nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook nasm makeWrapper ];
buildInputs = [
gtk3 ncurses libcpuid pciutils procps
];
postInstall = ''
wrapProgram $out/bin/cpu-x \
--prefix PATH : ${stdenv.lib.makeBinPath [ stdenv.cc ]}
'';
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 ];
};
}