From 8f2aa4a8df0a999cf9475aaf92737b137ecbe792 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 23 Sep 2023 08:12:10 -0300 Subject: etc/guix/home.scm: Add package definition for "offpunk" --- etc/guix/home.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) 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") -- cgit v1.2.3