Adding the memtest86 from memtest86.com, and renaming the top-level attribute

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
This commit is contained in:
Lluís Batlle i Rossell 2012-04-09 19:54:34 +00:00
parent d4913759da
commit 0684ca8745
3 changed files with 38 additions and 5 deletions

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "memtest86+-4.20";
name = "memtest86-4.0a";
src = fetchurl {
url = http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz;
sha256 = "0dw7kvfxiwqdmhapbz6ds1j9fralbky56hnzj4c6fsqfinbwwc2n";
url = http://memtest86.com/memtest86-4.0a.tar.gz;
sha256 = "0d2n3nzyvna9k880zk6vl1z3b7wal1hrwcqay9vda8br7yp7634y";
};
preBuild = ''
@ -25,7 +25,7 @@ stdenv.mkDerivation {
'';
meta = {
homepage = http://www.memtest.org/;
description = "A tool to detect memory errors";
homepage = http://memtest86.com/;
description = "A tool to detect memory errors, to be run from a bootloader";
};
}

View File

@ -0,0 +1,31 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "memtest86+-4.20";
src = fetchurl {
url = http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz;
sha256 = "0dw7kvfxiwqdmhapbz6ds1j9fralbky56hnzj4c6fsqfinbwwc2n";
};
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://www.memtest.org/;
description = "A tool to detect memory errors, fork from memtest86";
};
}

View File

@ -985,6 +985,8 @@ let
memtest86 = callPackage ../tools/misc/memtest86 { };
memtest86plus = callPackage ../tools/misc/memtest86/plus.nix { };
mc = callPackage ../tools/misc/mc { };
mcabber = callPackage ../applications/networking/instant-messengers/mcabber { };