2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl, makeWrapper
|
2015-05-10 18:18:23 -07:00
|
|
|
, sysfsutils, dmidecode, kmod }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "edac-utils-2015-01-07";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grondo";
|
|
|
|
repo = "edac-utils";
|
|
|
|
rev = "f9aa96205f610de39a79ff43c7478b7ef02e3138";
|
|
|
|
sha256 = "1dmfqb15ffldl5zirbmwiqzpxbcc2ny9rpfvxcfvpmh5b69knvdg";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl makeWrapper ];
|
|
|
|
buildInputs = [ sysfsutils ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/sbin/edac-ctl" \
|
2021-01-15 06:45:37 -08:00
|
|
|
--set PATH ${lib.makeBinPath [ dmidecode kmod ]}
|
2015-05-10 18:18:23 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/grondo/edac-utils";
|
2015-06-29 07:20:58 -07:00
|
|
|
description = "Handles the reporting of hardware-related memory errors";
|
2015-05-10 18:18:23 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|