diff --git a/radix/packages/disk.scm b/radix/packages/disk.scm new file mode 100644 index 0000000..2fbe703 --- /dev/null +++ b/radix/packages/disk.scm @@ -0,0 +1,42 @@ +(define-module (radix packages disk) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) + #:use-module (guix packages) + #:use-module (guix build-system go) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (radix packages golang) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public lf + (package + (name "lf") + (version "31") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gokcehan/lf") + (commit (string-append "r" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03icsf4c3j7295s1d8s6srz5gf09a3lghgw3zfcd86p03zhkzsaf")))) + (build-system go-build-system) + (arguments + (list #:go go-1.18 + #:import-path "github.com/gokcehan/lf")) + (inputs (list go-golang-org-x-term + go-golang-org-x-sys + go-github-com-mattn-go-runewidth + go-github-com-gdamore-tcell-v2 + go-github-com-djherbis-times)) + (home-page "https://github.com/gokcehan/lf") + (synopsis "Console file browser similar to Ranger") + (description + "lf (as in \"list files\") is a terminal file manager +written in Go. It is heavily inspired by ranger with some missing and +extra features. Some of the missing features are deliberately omitted +since they are better handled by external tools.") + (license license:expat))) + +lf diff --git a/radix/packages/golang.scm b/radix/packages/golang.scm new file mode 100644 index 0000000..2e0649e --- /dev/null +++ b/radix/packages/golang.scm @@ -0,0 +1,65 @@ +(define-module (radix packages golang) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-build) + #:use-module (guix packages) + #:use-module (guix build-system go) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public go-github-com-djherbis-times + (package + (name "go-github-com-djherbis-times") + (version "1.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/djherbis/times") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0a70nqkc592ipbgb3ib4yg8i2yj2hlhalpzzksdlhilm5a3689ic")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/djherbis/times")) + (propagated-inputs `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/djherbis/times") + (synopsis "times") + (description + "Package times provides a platform-independent way to get atime, mtime, ctime and +btime for files.") + (license license:expat))) + +(define-public go-github-com-gdamore-tcell-v2 + (package + (name "go-github-com-gdamore-tcell-v2") + (version "2.7.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gdamore/tcell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gdamore/tcell/v2")) + (propagated-inputs `(("go-golang-org-x-text" ,go-golang-org-x-text) + ("go-golang-org-x-term" ,go-golang-org-x-term) + ("go-golang-org-x-sys" ,go-golang-org-x-sys) + ("go-github-com-mattn-go-runewidth" ,go-github-com-mattn-go-runewidth) + ("go-github-com-lucasb-eyer-go-colorful" ,go-github-com-lucasb-eyer-go-colorful) + ("go-github-com-gdamore-encoding" ,go-github-com-gdamore-encoding))) + (home-page "https://github.com/gdamore/tcell") + (synopsis "Tcell") + (description + "Package tcell provides a lower-level, portable API for building programs that +interact with terminals or consoles. It works with both common (and many +uncommon!) terminals or terminal emulators, and Windows console implementations.") + (license license:asl2.0))) + +