2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ncurses, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "diskscan";
|
|
|
|
version = "0.20";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baruch";
|
|
|
|
repo = "diskscan";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1s2df082yrnr3gqnapdsqz0yd0ld75bin37g0rms83ymzkh4ysgv";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/baruch/diskscan";
|
|
|
|
description = "Scan HDD/SSD for failed and near failed sectors";
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|