diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 86d54aa3343..800b0eb2401 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -78,6 +78,7 @@ ;;; Copyright © 2024 nik gaffney ;;; Copyright © 2025 Simon Streit ;;; Copyright © 2025 Luca Kredel +;;; Copyright © 2025 ROCKTAKEY ;;; ;;; This file is part of GNU Guix. ;;; @@ -6950,6 +6951,41 @@ with which other processes. It provides more usable versions of @command{ps}, network, which causes enabled computers to power on.") (license license:gpl2+))) +(define-public witr + (package + (name "witr") + (version "0.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pranshuparmar/witr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "016yiwn0b00ynllka6h2w6gk2yjzj5nx2xf26shb0cz4crdwww0d")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/pranshuparmar/witr/cmd/witr" + #:unpack-path "github.com/pranshuparmar/witr" + #:build-flags #~(list "-ldflags" + (string-append "-X main.version=" #$version)))) + (home-page "https://github.com/pranshuparmar/witr") + (synopsis "Utility to show why the process is running") + (description + "The @dfn{witr} (why-is-this-running), is a utility to show: +@enumerate +@item What is running? +@item How did it start? +@item What is keeping it running? +@item What context does it belong to? +@end enumerate +It shows which process uses the port, and its information like process tree, +working directory, user, pid, command, and so on.") + (license license:asl2.0))) + (define-public xfel (package (name "xfel")