uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/os-specific/linux/edac-utils/default.nix
Normal file
38
pkgs/os-specific/linux/edac-utils/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, perl, makeWrapper
|
||||
, sysfsutils, dmidecode, kmod }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "edac-utils";
|
||||
version = "unstable-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" \
|
||||
--set PATH ${lib.makeBinPath [ dmidecode kmod ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/grondo/edac-utils";
|
||||
description = "Handles the reporting of hardware-related memory errors";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue