depot/third_party/nixpkgs/pkgs/tools/system/wsysmon/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

54 lines
967 B
Nix

{ 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 = "Windows task manager clone for Linux";
homepage = "https://github.com/SlyFabi/WSysMon";
license = [ licenses.mit ];
platforms = platforms.linux;
maintainers = with maintainers; [ totoroot ];
mainProgram = "WSysMon";
};
}