nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 53 lines 1.6 kB view raw
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtk3, ncurses 2, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper 3, opencl-headers, ocl-icd 4, vulkan-headers, vulkan-loader, glfw 5, libXdmcp, pcre, util-linux 6, libselinux, libsepol 7, libthai, libdatrie, libxkbcommon, libepoxy 8, dbus, at-spi2-core 9, libXtst 10}: 11 12# Known issues: 13# - The daemon can't be started from the GUI, because pkexec requires a shell 14# registered in /etc/shells. The nix's bash is not in there when running 15# cpu-x from nixpkgs. 16 17stdenv.mkDerivation rec { 18 pname = "cpu-x"; 19 version = "4.5.3"; 20 21 src = fetchFromGitHub { 22 owner = "X0rg"; 23 repo = "CPU-X"; 24 rev = "v${version}"; 25 sha256 = "sha256-o48NkOPabfnwsu+nyXJOstW6g0JSUgIrEFx1nNCR7XE="; 26 }; 27 28 nativeBuildInputs = [ cmake pkg-config wrapGAppsHook nasm makeWrapper ]; 29 buildInputs = [ 30 gtk3 ncurses libcpuid pciutils procps 31 vulkan-headers vulkan-loader glfw 32 opencl-headers ocl-icd 33 libXdmcp pcre util-linux 34 libselinux libsepol 35 libthai libdatrie libxkbcommon libepoxy 36 dbus at-spi2-core 37 libXtst 38 ]; 39 40 postInstall = '' 41 wrapProgram $out/bin/cpu-x \ 42 --prefix PATH : ${lib.makeBinPath [ stdenv.cc ]} \ 43 --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib 44 ''; 45 46 meta = with lib; { 47 description = "Free software that gathers information on CPU, motherboard and more"; 48 homepage = "https://thetumultuousunicornofdarkness.github.io/CPU-X"; 49 license = licenses.gpl3Plus; 50 platforms = [ "x86_64-linux" ]; 51 maintainers = with maintainers; [ viraptor ]; 52 }; 53}