2018-04-22 18:04:51 +01:00
|
|
|
{ stdenv, fetchgit }:
|
2012-04-09 20:54:34 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-05-08 16:01:05 +01:00
|
|
|
pname = "memtest86+";
|
|
|
|
version = "5.01-coreboot-002";
|
2013-10-02 10:37:43 +01:00
|
|
|
|
2018-04-22 18:04:51 +01:00
|
|
|
src = fetchgit {
|
2019-05-08 16:01:05 +01:00
|
|
|
url = "https://review.coreboot.org/memtest86plus.git";
|
|
|
|
rev = "v002";
|
|
|
|
sha256 = "0cwx20yja24bfknqh1rjb5rl2c0kwnppzsisg1dibbak0l8mxchk";
|
2012-04-09 20:54:34 +01:00
|
|
|
};
|
|
|
|
|
2015-06-27 23:49:30 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I. -std=gnu90";
|
2013-10-02 10:37:43 +01:00
|
|
|
|
2018-04-22 17:38:27 +01:00
|
|
|
hardeningDisable = [ "all" ];
|
2016-03-04 13:48:06 +00:00
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
buildFlags = [ "memtest.bin" ];
|
2013-10-02 10:37:43 +01:00
|
|
|
|
2018-08-08 22:35:07 +01:00
|
|
|
doCheck = false; # fails
|
|
|
|
|
2012-04-09 20:54:34 +01:00
|
|
|
installPhase = ''
|
2019-05-08 16:01:05 +01:00
|
|
|
install -Dm0444 -t $out/ memtest.bin
|
2012-04-09 20:54:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-05-08 16:01:05 +01:00
|
|
|
homepage = "http://www.memtest.org/";
|
2013-10-02 10:37:43 +01:00
|
|
|
description = "A tool to detect memory errors";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-12-03 17:47:03 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2012-04-09 20:54:34 +01:00
|
|
|
};
|
|
|
|
}
|