Skip to content

Commit

Permalink
thermalmonitor: init at 0.1.0-kf5
Browse files Browse the repository at this point in the history
  • Loading branch information
InternetUnexplorer committed Aug 12, 2023
1 parent 5664c7d commit eb6d434
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions thermalmonitor/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitLab, plasma5Packages, writeShellScript, nix-update }:

stdenv.mkDerivation rec {
pname = "thermalmonitor";
version = "0.1.0-kf5";

src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "olib";
repo = "thermalmonitor";
rev = "v${version}";
hash = "sha256-ssnB2eAW4FTZzv/zU9kpLWR93w5mExXNnVhK8NeXcog=";
};

buildInputs = with plasma5Packages; [
ksystemstats
libksysguard
kitemmodels
kdeclarative
];
nativeBuildInputs = [ plasma5Packages.extra-cmake-modules ];

dontWrapQtApps = true;

meta = with lib; {
description = "A KDE Plasmoid for displaying system temperatures";
inherit (src.meta) homepage;
license = licenses.wtfpl;
platforms = platforms.linux;
};

passthru.updateScript = writeShellScript "update-${pname}" ''
exec ${nix-update}/bin/nix-update --flake ${pname}
'';
}

0 comments on commit eb6d434

Please sign in to comment.