nixpkgs-suyu/pkgs/tools/system/rowhammer-test/default.nix

30 lines
811 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2016-03-11 14:29:56 +01:00
stdenv.mkDerivation {
name = "rowhammer-test-20150811";
src = fetchFromGitHub {
owner = "google";
repo = "rowhammer-test";
rev = "c1d2bd9f629281402c10bb10e52bc1f1faf59cc4"; # 2015-08-11
sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i";
};
2021-01-15 10:19:50 +01:00
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-Wno-error=format";
2016-03-11 14:29:56 +01:00
buildPhase = "sh -e make.sh";
installPhase = ''
mkdir -p $out/bin
cp rowhammer_test double_sided_rowhammer $out/bin
'';
meta = with lib; {
2016-03-11 14:29:56 +01:00
description = "Test DRAM for bit flips caused by the rowhammer problem";
homepage = "https://github.com/google/rowhammer-test";
2016-03-11 14:29:56 +01:00
license = licenses.asl20;
maintainers = [ maintainers.viric ];
platforms = [ "x86_64-linux" "i686-linux" ];
2016-03-11 14:29:56 +01:00
};
}