about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/zenmonitor/default.nix
blob: e8fce959c8dc9b3e68e10009c07a87ab5e157618 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchFromGitHub, pkg-config, gtk3, wrapGAppsHook }:

stdenv.mkDerivation rec {
  pname = "zenmonitor";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "Ta180m";
    repo = "zenmonitor3";
    rev = "v${version}";
    sha256 = "sha256-2EsuSMXnnMg0e0JD1TXJplsi7sOg9em0qqge2WlC6ro=";
  };

  buildInputs = [ gtk3 ];
  nativeBuildInputs = [ pkg-config wrapGAppsHook ];

  makeFlags = [ "PREFIX=${placeholder "out"}" ];

  meta = with lib; {
    description = "Monitoring software for AMD Zen-based CPUs";
    mainProgram = "zenmonitor";
    homepage = "https://github.com/Ta180m/zenmonitor3";
    license = licenses.mit;
    platforms = [ "i686-linux" "x86_64-linux" ];
    maintainers = with maintainers; [ alexbakker artturin ];
  };
}