From c3148948ff0c5cdbf75b8e2c894f15850e8aff3d Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 22 Apr 2018 17:04:51 +0000 Subject: [PATCH] memtest86plus: 5.01 -> 5.01+coreboot-20180113 aka 5.01+coreboot-001+ The version maintained by coreboot project is superior to Debian, it integrates all the Debian patches and fixes a bunch more bugs. In particular, it fixes SMP freezes and apparent memory errors when running under coreboot ROM. --- pkgs/tools/misc/memtest86+/default.nix | 34 +++++--------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/pkgs/tools/misc/memtest86+/default.nix b/pkgs/tools/misc/memtest86+/default.nix index 8ee4d6eeb9ef..6103ba021260 100644 --- a/pkgs/tools/misc/memtest86+/default.nix +++ b/pkgs/tools/misc/memtest86+/default.nix @@ -1,36 +1,14 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchgit }: stdenv.mkDerivation rec { - name = "memtest86+-5.01"; + name = "memtest86+-5.01+coreboot-20180113"; - src = fetchurl { - url = "http://www.memtest.org/download/5.01/${name}.tar.gz"; - sha256 = "0fch1l55753y6jkk0hj8f6vw4h1kinkn9ysp22dq5g9zjnvjf88l"; + src = fetchgit { + url = "https://review.coreboot.org/memtest86plus"; + rev = "5ca4eb9544e51254254d09ae6e70f93403469ec3"; + sha256 = "08m4rjr0chhhb1whgggknz926zv9hm8bisnxqp8lffqiwhb55rgk"; }; - patches = [ - (fetchurl { - url = "https://sources.debian.net/data/main/m/memtest86+/5.01-3/debian/patches/doc-serialconsole"; - sha256 = "1qh2byj9bmpchym8iq20n4hqmy10nrl6bi0d9pgdqikkmw9m38jq"; - }) - (fetchurl { - url = "https://sources.debian.net/data/main/m/memtest86+/5.01-3/debian/patches/multiboot"; - sha256 = "0nq61307ah5b41ff5nqs99wjzjzlajvfv6k9c9d0gqvhx8r4dvmy"; - }) - (fetchurl { - url = "https://sources.debian.net/data/main/m/memtest86+/5.01-3/debian/patches/memtest86+-5.01-O0.patch"; - sha256 = "1xmj3anq1fr0cxwv8lqfp5cr5f58v7glwc6z0v8hx8aib8yj1wl2"; - }) - (fetchurl { - url = "https://sources.debian.net/data/main/m/memtest86+/5.01-3/debian/patches/memtest86+-5.01-array-size.patch"; - sha256 = "0yxlzpfs6313s91y984p7rlf5rgybcjhg7i9zqy4wqhm3j90f1kb"; - }) - (fetchurl { - url = "https://sources.debian.net/data/main/m/memtest86+/5.01-3/debian/patches/gcc-5"; - sha256 = "13xfy6sn8qbj1hx4vms2cz24dsa3bl8n2iblz185hkn11y7141sc"; - }) - ]; - preBuild = '' # Really dirty hack to get Memtest to build without needing a Glibc # with 32-bit libraries and headers.