2015-05-11 02:18:23 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl, makeWrapper
|
|
|
|
, 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" \
|
2017-08-10 02:43:04 +01:00
|
|
|
--set PATH ${stdenv.lib.makeBinPath [ dmidecode kmod ]}
|
2015-05-11 02:18:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://github.com/grondo/edac-utils;
|
2015-06-29 15:20:58 +01:00
|
|
|
description = "Handles the reporting of hardware-related memory errors";
|
2015-05-11 02:18:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|