0684ca8745
name of memtest86+ to memtest86plus. I think it makes more sense for the attribute memtest86 to point to the upstream memtest86.com version. svn path=/nixpkgs/trunk/; revision=33689
31 lines
696 B
Nix
31 lines
696 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "memtest86-4.0a";
|
|
|
|
src = fetchurl {
|
|
url = http://memtest86.com/memtest86-4.0a.tar.gz;
|
|
sha256 = "0d2n3nzyvna9k880zk6vl1z3b7wal1hrwcqay9vda8br7yp7634y";
|
|
};
|
|
|
|
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 = ''
|
|
mkdir -p $out
|
|
cp memtest.bin $out/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://memtest86.com/;
|
|
description = "A tool to detect memory errors, to be run from a bootloader";
|
|
};
|
|
}
|