2021-02-13 14:23:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-02-13 14:23:35 +00:00
|
|
|
pname = "flashbench-unstable";
|
|
|
|
version = "2020-01-23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bradfa";
|
|
|
|
repo = "flashbench";
|
|
|
|
rev = "d783b1bd2443812c6deadc31b081f043e43e4c1a";
|
|
|
|
sha256 = "045j1kpay6x2ikz8x54ph862ymfy1nzpbmmqpf3nkapiv32fjqw5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-13 14:23:35 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +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-13 14:23:35 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Testing tool for flash based memory devices";
|
|
|
|
homepage = "https://github.com/bradfa/flashbench";
|
|
|
|
platforms = platforms.linux;
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
}
|