mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
8dcfa44a53
It fails with hardening-related errors like: reloc.o: In function `.L41': reloc.c:(.text+0x452): undefined reference to `__stack_chk_fail_local' ... and several others as well! Since nobody has noticed that this package has been broken the entire 16.09 release, it's probably not worth to try fixing it. (Note that this is a different package from memtest86plus!)
33 lines
735 B
Nix
33 lines
735 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "memtest86-4.3.6";
|
|
|
|
src = fetchurl {
|
|
url = http://www.memtest86.com/downloads/memtest86-4.3.6-src.tar.gz;
|
|
sha256 = "0qbksyl2hmkm12n7zbmf2m2n3q811skhykxx6a9a7y6r7k8y5qmv";
|
|
};
|
|
|
|
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";
|
|
broken = true;
|
|
};
|
|
}
|