nixpkgs/pkgs/applications/misc/cpu-x/default.nix

33 lines
876 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, ncurses
2020-05-18 09:11:11 +00:00
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper }:
2020-05-01 08:45:00 +00:00
stdenv.mkDerivation rec {
pname = "cpu-x";
2021-03-30 10:05:07 +00:00
version = "4.2.0";
2020-05-01 08:45:00 +00:00
src = fetchFromGitHub {
owner = "X0rg";
repo = "CPU-X";
rev = "v${version}";
2021-03-30 10:05:07 +00:00
sha256 = "sha256-LWIcE86o+uU8G9DtumiH6iTqHhvq4y/QyQX7J3FhKEc=";
2020-05-01 08:45:00 +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
2020-05-01 08:45:00 +00:00
];
2020-05-18 09:11:11 +00:00
postInstall = ''
wrapProgram $out/bin/cpu-x \
2021-01-15 05:42:41 +00:00
--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}
2020-05-18 09:11:11 +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;
license = licenses.gpl3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ ];
2020-05-01 08:45:00 +00:00
};
}