nixpkgs-suyu/pkgs/tools/misc/diskscan/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

26 lines
661 B
Nix

{ stdenv, fetchFromGitHub, cmake, ncurses, zlib }:
stdenv.mkDerivation rec {
pname = "diskscan";
version = "0.20";
src = fetchFromGitHub {
owner = "baruch";
repo = "diskscan";
rev = "${version}";
sha256 = "1s2df082yrnr3gqnapdsqz0yd0ld75bin37g0rms83ymzkh4ysgv";
};
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;
license = licenses.gpl3;
};
}