mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
mcelog: add utillinux as dependency
Fixes this:
$ sudo mcelog
...
unknown-error-trigger: line 21: logger: command not found
unknown-error-trigger: line 22: logger: command not found
(cherry picked from commit 2bf421d197)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ stdenv, fetchFromGitHub, utillinux }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mcelog-${version}";
|
||||
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
|
||||
touch mcelog.conf.5 # avoid regeneration requiring Python
|
||||
|
||||
substituteInPlace Makefile --replace '"unknown"' '"${version}"'
|
||||
|
||||
for i in triggers/*; do
|
||||
substituteInPlace $i --replace 'logger' '${utillinux}/bin/logger'
|
||||
done
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -904,7 +904,9 @@ in
|
||||
|
||||
mstflint = callPackage ../tools/misc/mstflint { };
|
||||
|
||||
mcelog = callPackage ../os-specific/linux/mcelog { };
|
||||
mcelog = callPackage ../os-specific/linux/mcelog {
|
||||
utillinux = utillinuxMinimal;
|
||||
};
|
||||
|
||||
apparix = callPackage ../tools/misc/apparix { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user