depot/third_party/nixpkgs/pkgs/tools/misc/diskscan/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

26 lines
664 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, ncurses, zlib }:
stdenv.mkDerivation rec {
pname = "diskscan";
version = "0.21";
src = fetchFromGitHub {
owner = "baruch";
repo = "diskscan";
rev = version;
sha256 = "sha256-2y1ncPg9OKxqImBN5O5kXrTsuwZ/Cg/8exS7lWyZY1c=";
};
buildInputs = [ ncurses zlib ];
nativeBuildInputs = [ cmake ];
meta = with 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 ];
license = licenses.gpl3;
mainProgram = "diskscan";
};
}