git.iko.soy/typeable/nixpkgs
on master help sign in
mcelog 114 -> 115: major path fixes

Both $out/bin/mcelog and $out/etc/mcelog/mcelog.conf now point to the correct $out/etc/mcelog.

commitfb235a871aba61cebd098e22ac84b9a9061d69b3 authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> dateThu 23 Apr 2015, 01:48 (12 years ago) parent07b9356
1 file changed+9−6
pkgs/os-specific/linux/mcelog/default.nix+9−6
pkgs/os-specific/linux/mcelog/default.nix+9−6
@@ -1,22 +1,25 @@
11{ stdenv, fetchFromGitHub }:
22
3−let version = "114"; in
3+let version = "115"; in
44stdenv.mkDerivation {
55 name = "mcelog-${version}";
66
77 src = fetchFromGitHub {
8− sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v";
8+ sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki";
99 rev = "v${version}";
1010 repo = "mcelog";
1111 owner = "andikleen";
1212 };
1313
14− makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
15−
16− preInstall = ''
17− mkdir -p $out/share/{doc,man/man{5,8}}
14+ postPatch = ''
15+ for i in mcelog.conf paths.h; do
16+ substituteInPlace $i --replace /etc $out/etc
17+ done
18+ touch mcelog.conf.5 # avoid regeneration requiring Python
1819 '';
1920
21+ installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc";
22+
2023 meta = with stdenv.lib; {
2124 inherit version;
2225 description = "Log machine checks (memory, IO, and CPU hardware errors)";