2023-10-19 13:55:26 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, lm_sensors
|
|
|
|
, libgtop
|
|
|
|
, libatasmart
|
|
|
|
, gtk3
|
|
|
|
, libnotify
|
|
|
|
, udisks2
|
|
|
|
, libXNVCtrl
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libappindicator
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "psensor";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://wpitchoune.net/psensor/files/psensor-${version}.tar.gz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1ark901va79gfq5p8h8dqypjgm3f8crmj37520q3slwz2rfphkq8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
lm_sensors
|
|
|
|
libgtop
|
|
|
|
libatasmart
|
|
|
|
gtk3
|
|
|
|
libnotify
|
|
|
|
udisks2
|
|
|
|
libappindicator
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXNVCtrl}/include -Wno-error"
|
2020-04-24 23:36:52 +00:00
|
|
|
NIX_LDFLAGS="$NIX_LDFLAGS -L${libXNVCtrl}/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Graphical hardware monitoring application for Linux";
|
|
|
|
homepage = "https://wpitchoune.net/psensor/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "psensor";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|