cpu-x: fix build (#475867)
This commit is contained in:
@@ -32,11 +32,6 @@
|
||||
gtkmm3,
|
||||
}:
|
||||
|
||||
# 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 (finalAttrs: {
|
||||
pname = "cpu-x";
|
||||
version = "5.4.0";
|
||||
@@ -48,6 +43,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-db7NxoVZgnYb1MZKfiFINx00JqDnf/TvwumBp6qDooQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/pull/402
|
||||
# FIXME: remove in the next version
|
||||
substituteInPlace src/core/bandwidth/{OOC/utility,routines}-x86-64bit.asm \
|
||||
--replace-fail "cpu ia64" "cpu default"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
|
||||
Reference in New Issue
Block a user