2010-12-18 18:42:55 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2008-01-03 16:14:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-09-06 18:16:45 +02:00
|
|
|
name = "memtest86-4.3.6";
|
2008-01-03 16:14:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-06 18:16:45 +02:00
|
|
|
url = http://www.memtest86.com/downloads/memtest86-4.3.6-src.tar.gz;
|
|
|
|
sha256 = "0qbksyl2hmkm12n7zbmf2m2n3q811skhykxx6a9a7y6r7k8y5qmv";
|
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
|
|
|
|
'';
|
2009-04-02 09:55:47 +02:00
|
|
|
|
2010-12-18 18:42:55 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I.";
|
2008-01-03 16:14:37 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2008-01-03 16:14:37 +01:00
|
|
|
cp memtest.bin $out/
|
|
|
|
'';
|
2009-04-01 11:07:11 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-04-09 21:54:34 +02:00
|
|
|
homepage = http://memtest86.com/;
|
|
|
|
description = "A tool to detect memory errors, to be run from a bootloader";
|
2017-03-01 21:18:28 +01:00
|
|
|
broken = true;
|
2009-04-01 11:07:11 +02:00
|
|
|
};
|
2008-01-03 16:14:37 +01:00
|
|
|
}
|