aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-09-23 08:12:10 -0300
committerEuAndreh <eu@euandre.org>2023-09-23 08:12:10 -0300
commit8f2aa4a8df0a999cf9475aaf92737b137ecbe792 (patch)
tree462b4b113790687c9987062e7ec5f0c019855714
parentetc/nix/configuration.nix: Remove flutter packages from system environment (diff)
downloaddotfiles-8f2aa4a8df0a999cf9475aaf92737b137ecbe792.tar.gz
dotfiles-8f2aa4a8df0a999cf9475aaf92737b137ecbe792.tar.xz
etc/guix/home.scm: Add package definition for "offpunk"
-rw-r--r--etc/guix/home.scm57
1 files changed, 57 insertions, 0 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm
index ae0c1a4..da03456 100644
--- a/etc/guix/home.scm
+++ b/etc/guix/home.scm
@@ -26,15 +26,20 @@
curl
dunst
image
+ file
flex
freedesktop
gperf
gtk
hunspell
javascript
+ less
man
pkg-config
python
+ python-crypto
+ python-web
+ python-xyz
tls
vim
web
@@ -355,6 +360,57 @@ libraries/software/operating systems
(description "FIXME")
(license licenses:unlicense)))
+(define-public offpunk
+ (package
+ (name "offpunk")
+ (version "1.10")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://git.sr.ht/~lioploum/offpunk")
+ (commit
+ (string-append "v" version))))
+ (sha256
+ (base32 "0r8j01s3hdn3iq4ld6pj3v0h4hpakvkc4h55jzz7jr6az4y8lcgs"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ; no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'wrap 'wrap-path
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (wrap-program (string-append #$output "/bin/offpunk")
+ `("PATH" ":" prefix
+ (,(string-append #$(this-package-input "less") "/bin")
+ ,(string-append #$(this-package-input "file") "/bin")
+ ,(string-append #$(this-package-input "xdg-utils") "/bin"))))))
+ (add-after 'install 'install-manpages
+ (lambda _
+ (install-file "man/offpunk.1"
+ (string-append #$output "/share/man/man1")))))))
+ (inputs
+ (list
+ python-cryptography
+ python-requests
+ python-feedparser
+ python-beautifulsoup4
+ python-readability-lxml
+ python-flit
+ xdg-utils
+ file
+ less))
+ (synopsis
+ "Command-line browser/feed reader for Gemini, Gopher, Spartan and Web")
+ (description #"-
+ The goal of Offpunk is to be able to synchronise your content once
+ (a day, a week, a month) and then browse/organise it while staying
+ disconnected"#)
+ (home-page "https://git.sr.ht/~lioploum/offpunk")
+ (license licenses:bsd-2)))
+
(define (slurp name)
(string-trim-both
(call-with-input-file
@@ -848,6 +904,7 @@ libraries/software/operating systems
;; neosurf
hunspell-iconv
;; tg
+ offpunk
(hunspell-dictionary-utf8 "en")
(hunspell-dictionary-utf8 "pt")
(hunspell-dictionary-utf8 "fr")