about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/gsmartcontrol/default.nix
blob: e52ae44a83f9f22897d3cc637a3a3fd523824317 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ fetchurl, lib, stdenv, smartmontools, autoreconfHook, gettext, gtkmm3, pkg-config, wrapGAppsHook, pcre-cpp, gnome }:

stdenv.mkDerivation rec {
  version="1.1.3";
  pname = "gsmartcontrol";

  src = fetchurl {
    url = "mirror://sourceforge/gsmartcontrol/gsmartcontrol-${version}.tar.bz2";
    sha256 = "1a8j7dkml9zvgpk83xcdajfz7g6mmpmm5k86dl5sjc24zb7n4kxn";
  };

  patches = [
    ./fix-paths.patch
  ];

  nativeBuildInputs = [ autoreconfHook gettext pkg-config wrapGAppsHook ];
  buildInputs = [ gtkmm3 pcre-cpp gnome.adwaita-icon-theme ];

  enableParallelBuilding = true;

  preFixup = ''
    gappsWrapperArgs+=(
      --prefix PATH : "${lib.makeBinPath [ smartmontools ]}"
    )
  '';

  meta = {
    description = "Hard disk drive health inspection tool";
    longDescription = ''
      GSmartControl is a graphical user interface for smartctl (from
      smartmontools package), which is a tool for querying and controlling
      SMART (Self-Monitoring, Analysis, and Reporting Technology) data on
      modern hard disk drives.

      It allows you to inspect the drive's SMART data to determine its health,
      as well as run various tests on it.
    '';
    homepage = "https://gsmartcontrol.sourceforge.io/";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [qknight];
    platforms = with lib.platforms; linux;
  };
}