packages: disk: Add lf

pull/3/head
Luis Guilherme Coelho 2024-03-22 18:45:40 -03:00
parent f21333a658
commit 4fd32be658
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
2 changed files with 107 additions and 0 deletions

42
radix/packages/disk.scm Normal file
View File

@ -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

65
radix/packages/golang.scm Normal file
View File

@ -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)))