1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation {
4 pname = "flashbench-unstable";
5 version = "2020-01-23";
6
7 src = fetchFromGitHub {
8 owner = "bradfa";
9 repo = "flashbench";
10 rev = "d783b1bd2443812c6deadc31b081f043e43e4c1a";
11 sha256 = "045j1kpay6x2ikz8x54ph862ymfy1nzpbmmqpf3nkapiv32fjqw5";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -d -m755 $out/bin $out/share/doc/flashbench
18 install -v -m755 flashbench $out/bin
19 install -v -m755 erase $out/bin/flashbench-erase
20 install -v -m644 README $out/share/doc/flashbench
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 description = "Testing tool for flash based memory devices";
27 homepage = "https://github.com/bradfa/flashbench";
28 platforms = platforms.linux;
29 license = licenses.gpl2Only;
30 };
31}