Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 gtkmm3, 8 gtk3, 9 spdlog, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "wsysmon"; 14 version = "0.1.0"; 15 16 src = fetchFromGitHub { 17 owner = "slyfabi"; 18 repo = "wsysmon"; 19 tag = finalAttrs.version; 20 hash = "sha256-5kfZT+hm064qXoAzi0RdmUqXi8VaXamlbm+FJOrGh3A="; 21 }; 22 23 patches = [ 24 # - Dynamically link spdlog 25 # - Remove dependency on procps (had a newer version than this package expected) 26 # - See https://github.com/SlyFabi/WSysMon/issues/4 for the issue about procps and why it could be removed 27 # - Add an installPhase 28 ./fix-deps-and-add-install.patch 29 ]; 30 31 nativeBuildInputs = [ 32 cmake 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 gtkmm3 38 gtk3 39 spdlog 40 ]; 41 42 meta = { 43 description = "Windows task manager clone for Linux"; 44 homepage = "https://github.com/SlyFabi/WSysMon"; 45 license = lib.licenses.mit; 46 platforms = lib.platforms.linux; 47 maintainers = with lib.maintainers; [ totoroot ]; 48 mainProgram = "WSysMon"; 49 }; 50})