mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
31 lines
829 B
Nix
31 lines
829 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "rowhammer-test";
|
|
version = "unstable-2015-08-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "rowhammer-test";
|
|
rev = "c1d2bd9f629281402c10bb10e52bc1f1faf59cc4";
|
|
sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i";
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-Wno-error=format";
|
|
|
|
buildPhase = "sh -e make.sh";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp rowhammer_test double_sided_rowhammer $out/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Test DRAM for bit flips caused by the rowhammer problem";
|
|
homepage = "https://github.com/google/rowhammer-test";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.viric ];
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
};
|
|
}
|