nixpkgs/pkgs/os-specific/linux/flashbench/default.nix

32 lines
813 B
Nix
Raw Normal View History

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