13 # Based in desktop files from official packages:
14 # https://github.com/congard/nvidia-system-monitor-qt/tree/master/package
15 desktopItem = makeDesktopItem {
16 name = "nvidia-system-monitor-qt";
17 desktopName = "NVIDIA System Monitor";
27 stdenv.mkDerivation rec {
28 pname = "nvidia-system-monitor-qt";
31 src = fetchFromGitHub {
33 repo = "nvidia-system-monitor-qt";
35 sha256 = "sha256-VDw5Wp/QFDV1zKF4yz0aR0Hox9KHXZmeAKzKLSlu8Ck=";
38 buildInputs = [ qtbase ];
46 "-DIconPath=${placeholder "out"}/share/icons/hicolor/512x512/apps/qnvsm.png"
47 "-DVersionPrefix=(Nixpkgs)"
53 install -Dm755 qnvsm $out/bin/qnvsm
54 install -Dm644 $src/icon.png $out/share/icons/hicolor/512x512/apps/qnvsm.png
59 desktopItems = [ desktopItem ];
62 description = "Task Manager for Linux for NVIDIA graphics cards";
63 homepage = "https://github.com/congard/nvidia-system-monitor-qt";
64 downloadPage = "${homepage}/releases";
65 changelog = "${downloadPage}/tag/v${version}";
66 license = lib.licenses.mit;
67 maintainers = with lib.maintainers; [ hacker1024 ];
68 mainProgram = "qnvsm";
69 platforms = lib.platforms.linux;