at 23.11-beta 50 lines 982 B view raw
1{ stdenv 2, lib 3, fetchurl 4, pkg-config 5, lm_sensors 6, libgtop 7, libatasmart 8, gtk3 9, libnotify 10, udisks2 11, libXNVCtrl 12, wrapGAppsHook 13, libappindicator 14}: 15 16stdenv.mkDerivation rec { 17 pname = "psensor"; 18 19 version = "1.2.1"; 20 21 src = fetchurl { 22 url = "https://wpitchoune.net/psensor/files/psensor-${version}.tar.gz"; 23 sha256 = "1ark901va79gfq5p8h8dqypjgm3f8crmj37520q3slwz2rfphkq8"; 24 }; 25 26 nativeBuildInputs = [ pkg-config wrapGAppsHook ]; 27 28 buildInputs = [ 29 lm_sensors 30 libgtop 31 libatasmart 32 gtk3 33 libnotify 34 udisks2 35 libappindicator 36 ]; 37 38 preConfigure = '' 39 NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXNVCtrl}/include -Wno-error" 40 NIX_LDFLAGS="$NIX_LDFLAGS -L${libXNVCtrl}/lib" 41 ''; 42 43 meta = with lib; { 44 description = "Graphical hardware monitoring application for Linux"; 45 homepage = "https://wpitchoune.net/psensor/"; 46 license = licenses.mit; 47 platforms = platforms.linux; 48 maintainers = with maintainers; [ ]; 49 }; 50}