git.iko.soy/typeable/nixpkgs
on master help sign in
mcelog 114 -> 115: major path fixes
fb235a8Tobias Geerinckx-Rice
pkgs/os-specific/linux/mcelog/default.nix+9−6
@@ -1,22 +1,25 @@
1{ stdenv, fetchFromGitHub }:
1{ stdenv, fetchFromGitHub }:
2
2
3−let version = "114"; in
3+let version = "115"; in
4stdenv.mkDerivation {
4stdenv.mkDerivation {
5 name = "mcelog-${version}";
5 name = "mcelog-${version}";
6
6
7 src = fetchFromGitHub {
7 src = fetchFromGitHub {
8− sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v";
8+ sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki";
9 rev = "v${version}";
9 rev = "v${version}";
10 repo = "mcelog";
10 repo = "mcelog";
11 owner = "andikleen";
11 owner = "andikleen";
12 };
12 };
13
13
14− makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
14+ postPatch = ''
15−
15+ for i in mcelog.conf paths.h; do
16− preInstall = ''
16+ substituteInPlace $i --replace /etc $out/etc
17− mkdir -p $out/share/{doc,man/man{5,8}}
17+ done
18+ touch mcelog.conf.5 # avoid regeneration requiring Python
18 '';
19 '';
19
20
21+ installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc";
22+
20 meta = with stdenv.lib; {
23 meta = with stdenv.lib; {
21 inherit version;
24 inherit version;
22 description = "Log machine checks (memory, IO, and CPU hardware errors)";
25 description = "Log machine checks (memory, IO, and CPU hardware errors)";