about summary refs log tree commit diff
path: root/pkgs/tools/system/wsysmon/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-12-03 06:01:28 +0000
committerGitHub <noreply@github.com>2022-12-03 06:01:28 +0000
commit7ec41836730f4344e835c1ca06e33d347ff017a6 (patch)
treec348463f3dbaccc3397afa473ddbb83b7e3d9f16 /pkgs/tools/system/wsysmon/default.nix
parenta83c4dd1939293da6ba883d98764c9dc5f14ef74 (diff)
parent809f15f2e7fd66c3d3ba6aabffa946fbd67f93fc (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/system/wsysmon/default.nix')
-rw-r--r--pkgs/tools/system/wsysmon/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/tools/system/wsysmon/default.nix b/pkgs/tools/system/wsysmon/default.nix
new file mode 100644
index 0000000000000..96c3cc30587ee
--- /dev/null
+++ b/pkgs/tools/system/wsysmon/default.nix
@@ -0,0 +1,53 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, substituteAll
+, cmake
+, pkg-config
+, gtkmm3
+, gtk3
+, procps
+, spdlog
+}:
+
+stdenv.mkDerivation rec {
+  pname = "wsysmon";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "slyfabi";
+    repo = "wsysmon";
+    rev = version;
+    sha256 = "sha256-5kfZT+hm064qXoAzi0RdmUqXi8VaXamlbm+FJOrGh3A=";
+  };
+
+  patches = [
+    # Prevent CMake from trying to fetch libraries from GitHub
+    (substituteAll {
+      src = ./dependencies.patch;
+      spdlog_src = spdlog.src;
+    })
+    # Add an installPhase
+    ./install.patch
+  ];
+
+  nativeBuildInputs = [
+    cmake
+    pkg-config
+  ];
+
+  buildInputs = [
+    gtkmm3
+    gtk3
+    procps
+    spdlog
+  ];
+
+  meta = with lib; {
+    description = "A windows task manager clone for Linux";
+    homepage = "https://github.com/SlyFabi/WSysMon";
+    license = [ licenses.mit ];
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ totoroot ];
+  };
+}