mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
* Added Memtest86+.
svn path=/nixpkgs/trunk/; revision=10059
This commit is contained in:
parent
028b0d7ff4
commit
1cc3c2b778
2 changed files with 30 additions and 0 deletions
26
pkgs/tools/misc/memtest86/default.nix
Normal file
26
pkgs/tools/misc/memtest86/default.nix
Normal 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/
|
||||
'';
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue