2008-01-03 16:14:37 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-04-01 11:07:11 +02:00
|
|
|
name = "memtest86+-2.11";
|
2008-01-03 16:14:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-01 11:07:11 +02:00
|
|
|
url = http://www.memtest.org/download/2.11/memtest86+-2.11.tar.gz;
|
|
|
|
sha256 = "03kcw6f62na3s08ybhnafn4s1pqs0z5lxl103xwxx77345r6m1s3";
|
2008-01-03 16:14:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
# Really dirty hack to get Memtest to build without needing a Glibc
|
|
|
|
# with 32-bit libraries and headers.
|
|
|
|
if test "$system" = x86_64-linux; then
|
|
|
|
mkdir gnu
|
|
|
|
touch gnu/stubs-32.h
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I.";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out
|
|
|
|
cp memtest.bin $out/
|
|
|
|
'';
|
2009-04-01 11:07:11 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.memtest.org/;
|
|
|
|
description = "A tool to detect memory errors";
|
|
|
|
};
|
2008-01-03 16:14:37 +01:00
|
|
|
}
|