Add memtest86+ override to 5.31b

The version in nixpkgs (5.01-coreboot002) does not work on nunotaba nor
sayuri (it shows all? addresses as bad).
This commit is contained in:
Simon Bruder 2021-04-30 15:56:23 +02:00
parent 1674ee980b
commit 36da32ff33
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -63,4 +63,22 @@ in
}) })
]; ];
}); });
# adapted from https://github.com/NixOS/nixpkgs/pull/85790
# TODO: Remove when memtest86+ ≥ 5.31b is in nixpkgs
memtest86plus = super.memtest86plus.overrideAttrs (o: o // rec {
version = "5.31b";
src = super.fetchurl {
url = "https://www.memtest.org/download/${version}/memtest86+-${version}.tar.gz";
sha256 = "028zrch87ggajlb5xx1c2ab85ggl9qldpibf45735sy0haqzyiki";
};
NIX_CFLAGS_COMPILE = null;
buildFlags = [ ];
doCheck = super.stdenv.isi686;
checkTarget = "run_self_test";
});
} }