about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/system/memtester/default.nix
blob: ff6ccb534fb9a5200167f65807e3549a9bfae81d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "memtester";
  version = "4.3.0";

  preConfigure = ''
    echo "$CC" > conf-cc
    echo "$CC" > conf-ld
  '';

  src = fetchurl {
    url = "http://pyropus.ca/software/memtester/old-versions/memtester-${version}.tar.gz";
    sha256 = "127xymmyzb9r6dxqrwd69v7gf8csv8kv7fjvagbglf3wfgyy5pzr";
  };

  installFlags = [ "INSTALLPATH=$(out)" ];

  meta = with stdenv.lib; {
    description = "A userspace utility for testing the memory subsystem for faults";
    homepage = http://pyropus.ca/software/memtester/;
    license = licenses.gpl2;
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.unix;
  };
}