* Added Memtest86+.

svn path=/nixpkgs/trunk/; revision=10059
This commit is contained in:
Eelco Dolstra 2008-01-03 15:14:37 +00:00
parent 028b0d7ff4
commit 1cc3c2b778
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "memtest86+-1.70";
src = fetchurl {
url = http://www.memtest.org/download/1.70/memtest86+-1.70.tar.gz;
sha256 = "1swj4hc764qwb3j80kvvb4qg5maq9dp8pxzy9jkk187jf92j8vfw";
};
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/
'';
}

View file

@ -602,6 +602,10 @@ rec {
inherit fetchurl stdenv db4 groff;
};
memtest86 = import ../tools/misc/memtest86 {
inherit fetchurl stdenv;
};
mjpegtools = import ../tools/video/mjpegtools {
inherit fetchurl stdenv libjpeg;
inherit (xlibs) libX11;