Merge pull request #176049 from LunNova/lunnova/memtest-update

memtest86+: 5.01-coreboot-002 -> 6.00-beta2

authored by Sandro and committed by GitHub 2cdcb504 c33d781d

+28 -14
+7
nixos/doc/manual/from_md/release-notes/rl-2211.section.xml
··· 116 116 and require manual remediation. 117 117 </para> 118 118 </listitem> 119 + <listitem> 120 + <para> 121 + memtest86+ was updated from 5.00-coreboot-002 to 6.00-beta2. 122 + It is now the upstream version from https://www.memtest.org/, 123 + as coreboot’s fork is no longer available. 124 + </para> 125 + </listitem> 119 126 </itemizedlist> 120 127 </section> 121 128 </section>
+2
nixos/doc/manual/release-notes/rl-2211.section.md
··· 51 51 52 52 - Matrix Synapse now requires entries in the `state_group_edges` table to be unique, in order to prevent accidentally introducing duplicate information (for example, because a database backup was restored multiple times). If your Synapse database already has duplicate rows in this table, this could fail with an error and require manual remediation. 53 53 54 + - memtest86+ was updated from 5.00-coreboot-002 to 6.00-beta2. It is now the upstream version from https://www.memtest.org/, as coreboot's fork is no longer available. 55 + 54 56 <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
+19 -14
pkgs/tools/misc/memtest86+/default.nix
··· 1 - { lib, stdenv, fetchgit }: 1 + { lib, stdenv, fetchFromGitHub }: 2 2 3 - stdenv.mkDerivation { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "memtest86+"; 5 - version = "5.01-coreboot-002"; 5 + version = "6.00-beta2"; 6 6 7 - src = fetchgit { 8 - url = "https://review.coreboot.org/memtest86plus.git"; 9 - rev = "v002"; 10 - sha256 = "0cwx20yja24bfknqh1rjb5rl2c0kwnppzsisg1dibbak0l8mxchk"; 7 + src = fetchFromGitHub { 8 + owner = "memtest86plus"; 9 + repo = "memtest86plus"; 10 + rev = "v${finalAttrs.version}"; 11 + hash = "sha256-U3++iJa0Zj3g2SZTJ0jom7raAu+LGqiOKZEputs/YfM="; 11 12 }; 12 13 13 - NIX_CFLAGS_COMPILE = "-I. -std=gnu90"; 14 - 15 - hardeningDisable = [ "all" ]; 14 + # Binaries are booted directly by BIOS/UEFI or bootloader 15 + # and should not be patched/stripped 16 + dontPatchELF = true; 17 + dontStrip = true; 16 18 17 - buildFlags = [ "memtest.bin" ]; 19 + passthru.efi = "${finalAttrs.finalPackage}/memtest.efi"; 18 20 19 - doCheck = false; # fails 21 + preBuild = '' 22 + cd ${if stdenv.isi686 then "build32" else "build64"} 23 + ''; 20 24 21 25 installPhase = '' 22 - install -Dm0444 -t $out/ memtest.bin 26 + install -Dm0444 -t $out/ memtest.bin memtest.efi 23 27 ''; 24 28 25 29 meta = { ··· 27 31 description = "A tool to detect memory errors"; 28 32 license = lib.licenses.gpl2; 29 33 platforms = [ "x86_64-linux" "i686-linux" ]; 34 + maintainers = [ lib.maintainers.LunNova ]; 30 35 }; 31 - } 36 + })