2024-07-27 06:49:29 +00:00
|
|
|
{ fetchurl, lib, stdenv, smartmontools, autoreconfHook, gettext, gtkmm3, pkg-config, wrapGAppsHook3, pcre-cpp, adwaita-icon-theme }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gsmartcontrol";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-02 18:25:31 +00:00
|
|
|
url = "https://github.com/ashaduri/gsmartcontrol/releases/download/v${version}/gsmartcontrol-${version}.tar.bz2";
|
|
|
|
sha256 = "sha256-/ECfK4qEzEC7ED1sgkAbnUwBgtWjsiPJOVnHrWYZGEc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/org.gsmartcontrol.policy --replace "/usr/sbin" $out/bin
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext pkg-config wrapGAppsHook3 ];
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ gtkmm3 pcre-cpp adwaita-icon-theme ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ smartmontools ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://gsmartcontrol.shaduri.dev/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [qknight];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|