From cec916a9b4a76c0c8c1ad1b5d58cf72652efc15c Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Wed, 5 Nov 2025 10:39:39 +0100 Subject: [PATCH] gnu: Add dgop. * gnu/packages/monitoring.scm (dgop): New variable. Change-Id: I9e5c67631bd276912413bfccb00d317ee11aec1b Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/monitoring.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index 3a112e529de2fa34eb0dc02aae4c6aade180038f..20fb84cf5b60f1b5889702d92be7c4c09f3d5fb6 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -467,6 +467,57 @@ HTTP. Features: @end itemize") (license license:gpl2))) +(define-public dgop + (package + (name "dgop") + (version "0.1.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AvengeMedia/dgop") + (commit (string-append "v" version)))) + (sha256 + (base32 "1iy9ndvrp7l1hr5ya2xf80j8ywcg8098z8wj2r47wdsqpagx2722")) + (file-name (git-file-name name version)))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/AvengeMedia/dgop/cmd/cli" + #:unpack-path "github.com/AvengeMedia/dgop" + #:test-subdirs + #~(list "../../...") ;test the whole libary + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'rename-cli + (lambda* (#:key output #:allow-other-keys) + (let* ((bin (string-append #$output "/bin"))) + (rename-file (string-append bin "/cli") + (string-append bin "/dgop")))))))) + (native-inputs + (list go-github-com-caarlos0-env + go-github-com-charmbracelet-bubbles + go-github-com-charmbracelet-lipgloss + go-github-com-charmbracelet-log + go-github-com-danielgtaylor-huma-v2 + go-github-com-fsnotify-fsnotify + go-github-com-go-chi-chi-v5 + go-github-com-gorilla-schema + go-github-com-shirou-gopsutil-v4 + go-github-com-spf13-cobra + go-github-com-stretchr-testify)) + (home-page "https://github.com/AvengeMedia/dgop") + (synopsis "Stateless system monitoring CLI + REST API") + (description + "dgop is a system monitoring tool. It supports cursor-based sampling of +CPU/memory/disk/network, plus an optional REST API server. It supports +cursor-based sampling for building real-time monitoring tools like +@command{htop}. Instead of relying on instantaneous snapshots, it may track +system state changes over time for more accurate CPU usage calculations and +network/disk rates.") + (license license:expat))) + (define-public python-whisper (package (name "python-whisper")