Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 849 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "rowhammer-test"; 9 version = "0-unstable-2015-08-11"; 10 11 src = fetchFromGitHub { 12 owner = "google"; 13 repo = "rowhammer-test"; 14 rev = "c1d2bd9f629281402c10bb10e52bc1f1faf59cc4"; 15 sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i"; 16 }; 17 18 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isi686 "-Wno-error=format"; 19 20 buildPhase = "sh -e make.sh"; 21 22 installPhase = '' 23 mkdir -p $out/bin 24 cp rowhammer_test double_sided_rowhammer $out/bin 25 ''; 26 27 meta = with lib; { 28 description = "Test DRAM for bit flips caused by the rowhammer problem"; 29 homepage = "https://github.com/google/rowhammer-test"; 30 license = licenses.asl20; 31 maintainers = [ ]; 32 platforms = [ 33 "x86_64-linux" 34 "i686-linux" 35 ]; 36 }; 37}