depot/third_party/nixpkgs/pkgs/tools/system/wsysmon/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

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