2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2016-03-11 13:29:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-07-27 14:21:24 +00:00
|
|
|
pname = "rowhammer-test";
|
2021-07-29 12:44:59 +00:00
|
|
|
version = "unstable-2015-08-11";
|
2016-03-11 13:29:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "rowhammer-test";
|
2021-07-29 12:44:59 +00:00
|
|
|
rev = "c1d2bd9f629281402c10bb10e52bc1f1faf59cc4";
|
2016-03-11 13:29:56 +00:00
|
|
|
sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i";
|
|
|
|
};
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-Wno-error=format";
|
2016-04-19 12:33:01 +00:00
|
|
|
|
2016-03-11 13:29:56 +00:00
|
|
|
buildPhase = "sh -e make.sh";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp rowhammer_test double_sided_rowhammer $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-03-11 13:29:56 +00:00
|
|
|
description = "Test DRAM for bit flips caused by the rowhammer problem";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/google/rowhammer-test";
|
2016-03-11 13:29:56 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.viric ];
|
2017-12-03 17:49:41 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2016-03-11 13:29:56 +00:00
|
|
|
};
|
|
|
|
}
|