diff --git a/pkgs/os-specific/linux/mcelog/default.nix b/pkgs/os-specific/linux/mcelog/default.nix index 2d743035e14f..f9969fa79fdb 100644 --- a/pkgs/os-specific/linux/mcelog/default.nix +++ b/pkgs/os-specific/linux/mcelog/default.nix @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5bc36f9b8286..ce7a23579eaf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };