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