diff --git a/pkgs/tools/misc/diskscan/default.nix b/pkgs/tools/misc/diskscan/default.nix new file mode 100644 index 000000000000..e1024d70bce9 --- /dev/null +++ b/pkgs/tools/misc/diskscan/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, cmake, ncurses, zlib }: + +stdenv.mkDerivation rec { + name = "diskscan-${version}"; + version = "0.19"; + + src = fetchFromGitHub { + owner = "baruch"; + repo = "diskscan"; + rev = "${version}"; + sha256 = "0yqpaxfahbjr8hr9xw7nngncwigy7yncdwnyp5wy9s9wdp8mrjra"; + }; + + buildInputs = [ ncurses zlib ]; + + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + homepage = https://github.com/baruch/diskscan; + description = "Scan HDD/SSD for failed and near failed sectors"; + platforms = with platforms; linux; + maintainers = with maintainers; [ peterhoeg ]; + inherit version; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7beca5009f68..1d7d103c00a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -816,6 +816,8 @@ with pkgs; discount = callPackage ../tools/text/discount { }; + diskscan = callPackage ../tools/misc/diskscan { }; + disorderfs = callPackage ../tools/filesystems/disorderfs { asciidoc = asciidoc-full; };