12 # Based in desktop files from official packages:
13 # https://github.com/congard/nvidia-system-monitor-qt/tree/master/package
14 desktopItem = makeDesktopItem {
15 name = "nvidia-system-monitor-qt";
16 desktopName = "NVIDIA System Monitor";
26 stdenv.mkDerivation rec {
27 pname = "nvidia-system-monitor-qt";
30 src = fetchFromGitHub {
32 repo = "nvidia-system-monitor-qt";
34 sha256 = "sha256-VDw5Wp/QFDV1zKF4yz0aR0Hox9KHXZmeAKzKLSlu8Ck=";
37 buildInputs = [ qtbase ];
38 nativeBuildInputs = [ cmake wrapQtAppsHook copyDesktopItems ];
41 "-DIconPath=${placeholder "out"}/share/icons/hicolor/512x512/apps/qnvsm.png"
42 "-DVersionPrefix=(Nixpkgs)"
48 install -Dm755 qnvsm $out/bin/qnvsm
49 install -Dm644 $src/icon.png $out/share/icons/hicolor/512x512/apps/qnvsm.png
54 desktopItems = [ desktopItem ];
57 description = "Task Manager for Linux for NVIDIA graphics cards";
58 homepage = "https://github.com/congard/nvidia-system-monitor-qt";
59 downloadPage = "${homepage}/releases";
60 changelog = "${downloadPage}/tag/v${version}";
61 license = lib.licenses.mit;
62 maintainers = with lib.maintainers; [ hacker1024 ];
63 mainProgram = "qnvsm";
64 platforms = lib.platforms.linux;