diff options
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/automatic-timezoned/default.nix | 7 | ||||
-rw-r--r-- | pkgs/tools/system/collectd/plugins.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/system/dfrs/default.nix | 22 | ||||
-rw-r--r-- | pkgs/tools/system/kanata/default.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/system/rocm-smi/default.nix | 14 | ||||
-rw-r--r-- | pkgs/tools/system/runitor/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/system/skeema/default.nix | 16 | ||||
-rw-r--r-- | pkgs/tools/system/smartmontools/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/system/wsysmon/default.nix | 53 | ||||
-rw-r--r-- | pkgs/tools/system/wsysmon/dependencies.patch | 14 | ||||
-rw-r--r-- | pkgs/tools/system/wsysmon/install.patch | 14 |
11 files changed, 133 insertions, 25 deletions
diff --git a/pkgs/tools/system/automatic-timezoned/default.nix b/pkgs/tools/system/automatic-timezoned/default.nix index f4788aba5b686..ee235fe695a60 100644 --- a/pkgs/tools/system/automatic-timezoned/default.nix +++ b/pkgs/tools/system/automatic-timezoned/default.nix @@ -5,20 +5,21 @@ rustPlatform.buildRustPackage rec { pname = "automatic-timezoned"; - version = "1.0.41"; + version = "1.0.45"; src = fetchFromGitHub { owner = "maxbrunet"; repo = pname; rev = "v${version}"; - sha256 = "sha256-KT1mVP2pMn6M8BPBdBgK94iLuAuoUwGo24L5IT5fVAQ="; + sha256 = "sha256-Q/FekjyEgeZAhX4Ni8XcBPSto/UwXU4TD9b3yrBNIZ4="; }; - cargoSha256 = "sha256-hfhSbpNVJm6OE/wL3aPNRV+kJGIZnpoTh8e/trRG21c="; + cargoSha256 = "sha256-gvJRN9YGaY1mfBn8gopTW8p+7AE7JI/A/1rixWVX2tU="; meta = with lib; { description = "Automatically update system timezone based on location"; homepage = "https://github.com/maxbrunet/automatic-timezoned"; + changelog = "https://github.com/maxbrunet/automatic-timezoned/blob/v${version}/CHANGELOG.md"; license = licenses.gpl3; maintainers = with maintainers; [ maxbrunet ]; platforms = platforms.linux; diff --git a/pkgs/tools/system/collectd/plugins.nix b/pkgs/tools/system/collectd/plugins.nix index 1455feb1c32f1..3bef287ccf04f 100644 --- a/pkgs/tools/system/collectd/plugins.nix +++ b/pkgs/tools/system/collectd/plugins.nix @@ -31,7 +31,7 @@ , perl , postgresql , protobufc -, python2 +, python3 , rabbitmq-c , rdkafka , riemann_c_client @@ -102,7 +102,7 @@ let pinba.buildInputs = [ protobufc ]; ping.buildInputs = [ liboping ]; postgresql.buildInputs = [ postgresql ]; - python.buildInputs = [ python2 ]; + python.buildInputs = [ python3 ]; redis.buildInputs = [ hiredis ]; rrdcached.buildInputs = [ rrdtool libxml2 ]; rrdtool.buildInputs = [ rrdtool libxml2 ]; diff --git a/pkgs/tools/system/dfrs/default.nix b/pkgs/tools/system/dfrs/default.nix new file mode 100644 index 0000000000000..f9bbbd12388fe --- /dev/null +++ b/pkgs/tools/system/dfrs/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "dfrs"; + version = "0.0.7"; + + src = fetchFromGitHub { + owner = "anthraxx"; + repo = pname; + rev = version; + sha256 = "01h00328kbw83q11yrsvcly69p0hql3kw49b4jx6gwkrdm8c2amk"; + }; + + cargoSha256 = "1dgmn4g35yc7hwnxznkrpwnikn329nc0z8y7bxlcd308k1v83919"; + + meta = with lib; { + description = "Display file system space usage using graphs and colors"; + homepage = "https://github.com/anthraxx/dfrs"; + license = licenses.mit; + maintainers = with maintainers; [ wamserma ]; + }; +} diff --git a/pkgs/tools/system/kanata/default.nix b/pkgs/tools/system/kanata/default.nix index aced99ece95b2..2ef4d13c366b5 100644 --- a/pkgs/tools/system/kanata/default.nix +++ b/pkgs/tools/system/kanata/default.nix @@ -6,16 +6,16 @@ rustPlatform.buildRustPackage rec { pname = "kanata"; - version = "1.0.8"; + version = "1.1.0"; src = fetchFromGitHub { owner = "jtroo"; repo = pname; rev = "v${version}"; - sha256 = "sha256-9x0ELoYCwfE0N7CuxZYMPBmX8A5Vh4pAtbcY6X6S9eQ="; + sha256 = "sha256-/v3P5C0F/FVPJqJ38dzSnAc7ua2fOs3BeX9BDoQ8bDw="; }; - cargoHash = "sha256-e7yftR1mLMllBe0OIU5QWmGtQm+h30CbTInB6ojQk7M="; + cargoHash = "sha256-KXsW0fgbBy0tf/He0vH9Xq8yGuz77H/jeIabgw3ppy8="; buildFeatures = lib.optional withCmd "cmd"; diff --git a/pkgs/tools/system/rocm-smi/default.nix b/pkgs/tools/system/rocm-smi/default.nix index 9015f231bab09..3ade1088f9682 100644 --- a/pkgs/tools/system/rocm-smi/default.nix +++ b/pkgs/tools/system/rocm-smi/default.nix @@ -1,13 +1,13 @@ { lib, stdenv, fetchFromGitHub, writeScript, cmake, wrapPython }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "rocm-smi"; - version = "5.3.1"; + version = "5.3.3"; src = fetchFromGitHub { owner = "RadeonOpenCompute"; repo = "rocm_smi_lib"; - rev = "rocm-${version}"; + rev = "rocm-${finalAttrs.version}"; hash = "sha256-UbGbkH2vhQ9gv3sSoG+mXap+MdcrP61TN5DcP5F/5nQ="; }; @@ -22,15 +22,15 @@ stdenv.mkDerivation rec { passthru.updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq common-updater-scripts - version="$(curl -sL "https://api.github.com/repos/RadeonOpenCompute/rocm_smi_lib/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" - update-source-version rocm-smi "$version" + version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/RadeonOpenCompute/rocm_smi_lib/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" + update-source-version rocm-smi "$version" --ignore-same-hash ''; meta = with lib; { description = "System management interface for AMD GPUs supported by ROCm"; homepage = "https://github.com/RadeonOpenCompute/rocm_smi_lib"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ lovesegfault Flakebi ]; + maintainers = with maintainers; [ lovesegfault ] ++ teams.rocm.members; platforms = [ "x86_64-linux" ]; }; -} +}) diff --git a/pkgs/tools/system/runitor/default.nix b/pkgs/tools/system/runitor/default.nix index 6af7e76dfd2af..651f766cefbba 100644 --- a/pkgs/tools/system/runitor/default.nix +++ b/pkgs/tools/system/runitor/default.nix @@ -2,14 +2,14 @@ buildGoModule rec { pname = "runitor"; - version = "1.0.0"; + version = "1.2.0"; vendorSha256 = null; src = fetchFromGitHub { owner = "bdd"; repo = "runitor"; rev = "v${version}"; - sha256 = "sha256-6+U6Mh1XMdGaAmOrqUlVBX9d/GfOgXE22GwcLl0EfIU="; + sha256 = "sha256-lL9yfiqPIIfEvjiWcG6e1NrURHJFdk4x/od/w7/i2DE="; }; ldflags = [ diff --git a/pkgs/tools/system/skeema/default.nix b/pkgs/tools/system/skeema/default.nix index 7ee2ff0bf717c..6faf5172ca784 100644 --- a/pkgs/tools/system/skeema/default.nix +++ b/pkgs/tools/system/skeema/default.nix @@ -1,17 +1,17 @@ -{ lib, buildGoModule, fetchFromGitHub, coreutils }: +{ lib, buildGoModule, fetchFromGitHub, coreutils, runtimeShell, testers, skeema }: buildGoModule rec { pname = "skeema"; - version = "1.8.2"; + version = "1.9.0"; src = fetchFromGitHub { owner = "skeema"; repo = "skeema"; rev = "v${version}"; - sha256 = "sha256-PyQ5nLoJl3N/ewmHTZZHRLj9WV3EsUjL6fyESc8POss="; + hash = "sha256-mzxoA5oWX94EdiapSCgyC62RCffuutWzC1YKkGfJSEU="; }; - vendorSha256 = null; + vendorHash = null; CGO_ENABLED = 0; @@ -36,10 +36,14 @@ buildGoModule rec { --replace /bin/echo "${coreutils}/bin/echo" \ --replace /usr/bin/printf "${coreutils}/bin/printf" - substituteInPlace internal/util/shellout_unix_test.go \ - --replace /bin/echo "${coreutils}/bin/echo" + substituteInPlace internal/util/shellout_unix.go \ + --replace /bin/sh "${runtimeShell}" ''; + passthru.tests.version = testers.testVersion { + package = skeema; + }; + meta = with lib; { description = "Declarative pure-SQL schema management for MySQL and MariaDB"; homepage = "https://skeema.io/"; diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index d7bc0a2cb829e..a54c85bdaf922 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -4,8 +4,8 @@ , autoreconfHook , enableMail ? false , gnused +, hostname , mailutils -, inetutils , IOKit , ApplicationServices }: @@ -18,7 +18,7 @@ let sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; name = "smartmontools-drivedb.h"; }; - scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optionals enableMail [ inetutils mailutils ]); + scriptPath = lib.makeBinPath ([ gnused hostname ] ++ lib.optionals enableMail [ mailutils ]); in stdenv.mkDerivation rec { 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 ]; + }; +} diff --git a/pkgs/tools/system/wsysmon/dependencies.patch b/pkgs/tools/system/wsysmon/dependencies.patch new file mode 100644 index 0000000000000..cc0a2fc709ebc --- /dev/null +++ b/pkgs/tools/system/wsysmon/dependencies.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 31e8048..1eec936 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -7,8 +7,7 @@ include(FetchContent) + + FetchContent_Declare( + spdlog +- GIT_REPOSITORY https://github.com/gabime/spdlog.git +- GIT_TAG v1.10.0 ++ SOURCE_DIR @spdlog_src@ + ) + FetchContent_MakeAvailable(spdlog) + diff --git a/pkgs/tools/system/wsysmon/install.patch b/pkgs/tools/system/wsysmon/install.patch new file mode 100644 index 0000000000000..4b5946a7ab749 --- /dev/null +++ b/pkgs/tools/system/wsysmon/install.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 31e8048..a125b3f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -20,3 +20,9 @@ include_directories(${GTKMM_INCLUDE_DIRS} ${X11_INCLUDE_DIR}) + + add_executable(WSysMon src/main.cpp src/ui/MainWindow.cpp src/ui/widgets/GraphWidget.cpp src/ui/widgets/PerformanceButton.cpp src/ui/views/ProcessesView.cpp src/ui/views/PerformanceView.cpp src/ui/views/performance/PerformanceCPUView.cpp src/ui/views/performance/PerformanceGPUView.cpp src/ui/views/performance/PerformanceNetworkView.cpp src/ui/views/performance/PerformanceRAMView.cpp src/utils/DispatcherThread.cpp src/utils/UnitConverter.cpp src/utils/X11Utils.cpp src/api/process/ProcessManager.cpp src/api/process/ProcessNode.cpp src/api/linux/ProcessesApi.cpp src/api/linux/GPUApi.cpp src/api/linux/NetworkApi.cpp src/api/linux/SystemInfoApi.cpp src/api/DiskApi.h src/api/linux/DiskApi.cpp src/ui/views/performance/PerformanceDiskView.cpp src/ui/views/performance/PerformanceDiskView.h src/api/linux/gpu/nvml.h src/api/linux/gpu/nvml_hook_funcs.inl src/api/linux/gpu/NvGpuApi.cpp src/api/linux/gpu/NvGpuApi.h src/api/HwMonApi.h src/api/linux/HwMonApi.cpp) + target_link_libraries(WSysMon PRIVATE spdlog::spdlog pthread procps ${CMAKE_DL_LIBS} ${GTKMM_LIBRARIES} ${X11_LIBRARIES}) ++ ++install( ++ TARGETS ++ WSysMon ++ RUNTIME DESTINATION bin ++) |