at 24.11-pre 47 lines 1.5 kB view raw
1{ fetchurl, lib, stdenv, smartmontools, autoreconfHook, gettext, gtkmm3, pkg-config, wrapGAppsHook3, pcre-cpp, gnome }: 2 3stdenv.mkDerivation rec { 4 pname = "gsmartcontrol"; 5 version = "1.1.4"; 6 7 src = fetchurl { 8 url = "https://github.com/ashaduri/gsmartcontrol/releases/download/v${version}/gsmartcontrol-${version}.tar.bz2"; 9 sha256 = "sha256-/ECfK4qEzEC7ED1sgkAbnUwBgtWjsiPJOVnHrWYZGEc="; 10 }; 11 12 patches = [ 13 ./fix-paths.patch 14 ]; 15 16 postPatch = '' 17 substituteInPlace data/org.gsmartcontrol.policy --replace "/usr/sbin" $out/bin 18 ''; 19 20 nativeBuildInputs = [ autoreconfHook gettext pkg-config wrapGAppsHook3 ]; 21 buildInputs = [ gtkmm3 pcre-cpp gnome.adwaita-icon-theme ]; 22 23 enableParallelBuilding = true; 24 25 preFixup = '' 26 gappsWrapperArgs+=( 27 --prefix PATH : "${lib.makeBinPath [ smartmontools ]}" 28 ) 29 ''; 30 31 meta = { 32 description = "Hard disk drive health inspection tool"; 33 longDescription = '' 34 GSmartControl is a graphical user interface for smartctl (from 35 smartmontools package), which is a tool for querying and controlling 36 SMART (Self-Monitoring, Analysis, and Reporting Technology) data on 37 modern hard disk drives. 38 39 It allows you to inspect the drive's SMART data to determine its health, 40 as well as run various tests on it. 41 ''; 42 homepage = "https://gsmartcontrol.shaduri.dev/"; 43 license = lib.licenses.gpl2Plus; 44 maintainers = with lib.maintainers; [qknight]; 45 platforms = with lib.platforms; linux; 46 }; 47}