2022-12-17 10:02:37 +00:00
|
|
|
{ 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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Windows task manager clone for Linux";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/SlyFabi/WSysMon";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ totoroot ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "WSysMon";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|