2021-02-12 13:02:34 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2014-12-31 14:13:44 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2021-02-12 13:02:34 +01:00
|
|
|
pname = "flashbench-unstable";
|
|
|
|
version = "2020-01-23";
|
2014-12-31 14:13:44 +01:00
|
|
|
|
2021-02-12 13:02:34 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bradfa";
|
|
|
|
repo = "flashbench";
|
|
|
|
rev = "d783b1bd2443812c6deadc31b081f043e43e4c1a";
|
|
|
|
sha256 = "045j1kpay6x2ikz8x54ph862ymfy1nzpbmmqpf3nkapiv32fjqw5";
|
2014-12-31 14:13:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-12 13:02:34 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2014-12-31 14:13:44 +01:00
|
|
|
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
|
2021-02-12 13:02:34 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2014-12-31 14:13:44 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-12-31 14:13:44 +01:00
|
|
|
description = "Testing tool for flash based memory devices";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/bradfa/flashbench";
|
2014-12-31 14:13:44 +01:00
|
|
|
platforms = platforms.linux;
|
2021-02-12 13:02:34 +01:00
|
|
|
license = licenses.gpl2Only;
|
2014-12-31 14:13:44 +01:00
|
|
|
};
|
|
|
|
}
|