2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ncurses, zlib }:
|
2017-02-08 02:12:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "diskscan";
|
2024-02-19 20:44:27 +00:00
|
|
|
version = "0.21";
|
2017-02-08 02:12:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baruch";
|
|
|
|
repo = "diskscan";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2024-02-19 20:44:27 +00:00
|
|
|
sha256 = "sha256-2y1ncPg9OKxqImBN5O5kXrTsuwZ/Cg/8exS7lWyZY1c=";
|
2017-02-08 02:12:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/baruch/diskscan";
|
2017-02-08 02:12:16 +00:00
|
|
|
description = "Scan HDD/SSD for failed and near failed sectors";
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-08-05 14:28:41 +00:00
|
|
|
license = licenses.gpl3;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "diskscan";
|
2017-02-08 02:12:16 +00:00
|
|
|
};
|
|
|
|
}
|