forked from mirrors/nixpkgs
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
29 lines
818 B
Nix
29 lines
818 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rowhammer-test-20150811";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "rowhammer-test";
|
|
rev = "c1d2bd9f629281402c10bb10e52bc1f1faf59cc4"; # 2015-08-11
|
|
sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i";
|
|
};
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.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" ];
|
|
};
|
|
}
|