nixpkgs/pkgs/tools/misc/memtest86+/default.nix
c0bw3b 4c5dc1fa30 memtest86+: 5.01+coreboot-20180113 -> 5.01-coreboot-002
Latest stable stag of the coreboot fork
2019-05-08 17:01:05 +02:00

32 lines
681 B
Nix

{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
pname = "memtest86+";
version = "5.01-coreboot-002";
src = fetchgit {
url = "https://review.coreboot.org/memtest86plus.git";
rev = "v002";
sha256 = "0cwx20yja24bfknqh1rjb5rl2c0kwnppzsisg1dibbak0l8mxchk";
};
NIX_CFLAGS_COMPILE = "-I. -std=gnu90";
hardeningDisable = [ "all" ];
buildFlags = "memtest.bin";
doCheck = false; # fails
installPhase = ''
install -Dm0444 -t $out/ memtest.bin
'';
meta = {
homepage = "http://www.memtest.org/";
description = "A tool to detect memory errors";
license = stdenv.lib.licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
};
}