summary refs log tree commit diff
path: root/pkgs/os-specific/linux/flashbench/default.nix
blob: 70ad779c239b3cec05d9791c0a6e16a14414c6dd (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
27
{ stdenv, fetchgit }:

stdenv.mkDerivation {
  pname = "flashbench";
  version = "2012-06-06";

  src = fetchgit {
    url = "https://github.com/bradfa/flashbench.git";
    rev = "2e30b1968a66147412f21002ea844122a0d5e2f0";
    sha256 = "037rhd2alwfip9qk78cy8fwwnc2kdyzccsyc7v2zpmvl4vvpvnhg";
  };

  installPhase = ''
    install -d -m755 $out/bin $out/share/doc/flashbench
    install -v -m755 flashbench $out/bin
    install -v -m755 erase $out/bin/flashbench-erase
    install -v -m644 README $out/share/doc/flashbench
  '';

  meta = with stdenv.lib; {
    description = "Testing tool for flash based memory devices";
    homepage = "https://github.com/bradfa/flashbench";
    platforms = platforms.linux;
    license = licenses.gpl2;
    maintainers = [ maintainers.rycee ];
  };
}