bottom: add

This commit is contained in:
Pavel Korytov 2023-07-30 20:52:23 +03:00
parent 657c31d6b5
commit eb44ea236c
2 changed files with 47 additions and 0 deletions

View file

@ -24,6 +24,7 @@ I'll probably push what I can upstream when I figure Guix out.
| [[https://www.nushell.sh/][nushell]] | Works | Installation from binaries (Guix version was outdated when I created this) | | [[https://www.nushell.sh/][nushell]] | Works | Installation from binaries (Guix version was outdated when I created this) |
| [[https://gohugo.io/][hugo-extended]] | Works | Installation from binaries | | [[https://gohugo.io/][hugo-extended]] | Works | Installation from binaries |
| [[https://github.com/mamba-org/mamba][micromamba]] | Works | Installation from binaries | | [[https://github.com/mamba-org/mamba][micromamba]] | Works | Installation from binaries |
| [[https://github.com/ClementTsang/bottom][bottom]] | Works | Installation from binaries |
| [[https://github.com/atreyasha/i3-balance-workspace][i3-balance-workspace]] | Works | Tests fail | | [[https://github.com/atreyasha/i3-balance-workspace][i3-balance-workspace]] | Works | Tests fail |
| [[https://github.com/tmux-python/tmuxp][tmuxp]] | Works | Tests fail | | [[https://github.com/tmux-python/tmuxp][tmuxp]] | Works | Tests fail |
| [[https://github.com/hroptatyr/dateutils][dateutils]] | Works | Tests fail | | [[https://github.com/hroptatyr/dateutils][dateutils]] | Works | Tests fail |

46
bottom.scm Normal file
View file

@ -0,0 +1,46 @@
(define-module (bottom)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages gcc)
#:use-module (gnu packages xorg)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (nonguix build-system binary))
(define-public bottom-bin
(package
(name "bottom-bin")
(version "0.9.3")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/ClementTsang/bottom/releases/download/"
version "/bottom_x86_64-unknown-linux-gnu.tar.gz"))
(sha256
(base32
"1hzgdk8xpdnsz3v4jrj91d9rdicmc521xkjflv0fc3farf9fl32q"))))
(build-system binary-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
(invoke "tar" "xvzf" (assoc-ref inputs "source")))))
#:install-plan
`(("btm" "/bin/")
("completion/_btm" "/share/zsh/site-functions/")
("completion/btm.bash" "/share/bash-completion/completions/")
("completion/btm.fish" "/share/fish/vendor_completions.d/"))
#:patchelf-plan
`(("btm" ("glibc" "libgccjit")))))
(inputs
`(("libgccjit" ,libgccjit)
("glibc" ,glibc)))
(native-inputs
`(("gzip" ,gzip)))
(synopsis "Yet another cross-platform graphical process/system monitor. ")
(description "A customizable cross-platform graphical process/system monitor for the terminal. Inspired by gtop, gotop, and htop.")
(home-page "https://github.com/ClementTsang/bottom")
(license license:expat)))