lol

mcelog: 180 -> 206

Diff: https://github.com/andikleen/mcelog/compare/v180...v206

emaryn e74a8321 809637ec

+13 -12
+13 -12
pkgs/os-specific/linux/mcelog/default.nix
··· 5 5 util-linux, 6 6 }: 7 7 8 - stdenv.mkDerivation rec { 8 + stdenv.mkDerivation (finalAttrs: { 9 9 pname = "mcelog"; 10 - version = "180"; 10 + version = "206"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "andikleen"; 14 14 repo = "mcelog"; 15 - rev = "v${version}"; 16 - sha256 = "1xy1082c67yd48idg5vwvrw7yx74gn6jj2d9c67d0rh6yji091ki"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-hBdi/rokSJMI6GQZd7apT5Jd2/WRMNgBMbDx8tLfeKc="; 17 17 }; 18 18 19 19 postPatch = '' 20 + patchShebangs . 20 21 for i in mcelog.conf paths.h; do 21 - substituteInPlace $i --replace /etc $out/etc 22 + substituteInPlace $i --replace-fail "/etc" "$out/etc" 22 23 done 23 24 touch mcelog.conf.5 # avoid regeneration requiring Python 24 25 25 - substituteInPlace Makefile --replace '"unknown"' '"${version}"' 26 + substituteInPlace Makefile --replace-fail '"unknown"' '"${finalAttrs.version}"' 26 27 27 28 for i in triggers/*; do 28 - substituteInPlace $i --replace 'logger' '${util-linux}/bin/logger' 29 + substituteInPlace $i --replace-fail 'logger' '${util-linux}/bin/logger' 29 30 done 30 31 ''; 31 32 ··· 40 41 postInstall = '' 41 42 mkdir -p $out/lib/systemd/system 42 43 substitute mcelog.service $out/lib/systemd/system/mcelog.service \ 43 - --replace /usr/sbin $out/bin 44 + --replace-fail "/usr/sbin" "$out/bin" 44 45 ''; 45 46 46 - meta = with lib; { 47 + meta = { 47 48 description = "Log x86 machine checks: memory, IO, and CPU hardware errors"; 48 49 mainProgram = "mcelog"; 49 50 longDescription = '' ··· 55 56 errors are logged to /var/log/mcelog or syslog or the journal. 56 57 ''; 57 58 homepage = "http://mcelog.org/"; 58 - license = licenses.gpl2Plus; 59 - platforms = platforms.linux; 59 + license = lib.licenses.gpl2Plus; 60 + platforms = lib.platforms.linux; 60 61 }; 61 - } 62 + })