From fb775ae4723f61734495d3495eefbf98c03ce4be Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Wed, 20 Nov 2019 14:17:54 +0100 Subject: [PATCH] zenmonitor: init at 1.3 --- pkgs/os-specific/linux/zenmonitor/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/os-specific/linux/zenmonitor/default.nix diff --git a/pkgs/os-specific/linux/zenmonitor/default.nix b/pkgs/os-specific/linux/zenmonitor/default.nix new file mode 100644 index 000000000000..c333b94f40e2 --- /dev/null +++ b/pkgs/os-specific/linux/zenmonitor/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, pkgconfig, gtk3, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "zenmonitor"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "ocerman"; + repo = "zenmonitor"; + rev = "v${version}"; + sha256 = "16p2njrgik8zfkidm64v4qy53qlsqqxxgr9m3n84pr9l3pk25dwk"; + }; + + buildInputs = [ gtk3 ]; + nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + meta = with stdenv.lib; { + description = "Monitoring software for AMD Zen-based CPUs"; + homepage = https://github.com/ocerman/zenmonitor; + license = licenses.mit; + platforms = [ "i686-linux" "x86_64-linux" ]; + maintainers = with maintainers; [ alexbakker ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef9531719eb1..5cb16ad08dc9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17122,6 +17122,8 @@ in zd1211fw = callPackage ../os-specific/linux/firmware/zd1211 { }; + zenmonitor = callPackage ../os-specific/linux/zenmonitor { }; + inherit (callPackage ../os-specific/linux/zfs { configFile = "user"; }) zfsStable zfsUnstable;