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
This commit is contained in:
Bjørn Forsman 2016-09-01 17:01:00 +02:00
parent 28e378d462
commit 2bf421d197
2 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

@ -908,7 +908,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 { };