diff --git a/modules/radix/packages/syndication.scm b/modules/radix/packages/syndication.scm new file mode 100644 index 0000000..865cbe2 --- /dev/null +++ b/modules/radix/packages/syndication.scm @@ -0,0 +1,49 @@ +(define-module (radix packages syndication) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix build utils) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages curl) + #:use-module (gnu packages man) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages sqlite) + #:use-module (gnu packages web) + #:use-module (gnu packages xml) + #:use-module ((guix licenses) #:prefix license:)) + +;; Thanks to nckx, rekado and lechner for the help :) +(define-public newsraft + (package + (name "newsraft") + (version "0.20") + (source + (origin + (method url-fetch) + (uri (string-append + "https://codeberg.org/grisha/newsraft/archive/newsraft-" + version ".tar.gz")) + (sha256 + (base32 "0r3z8b8qwwnz7093nicxxv9cfxzg4i0mznd4vgwgpv16lm6q455w")))) + (build-system gnu-build-system) + (native-inputs (list gnu-make pkg-config scdoc)) + (inputs (list curl expat gumbo-parser ncurses sqlite yajl)) + (arguments + (list #:tests? #f + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output) + "CFLAGS=-DCURL_WRITEFUNC_ERROR=0xFFFFFFFF") + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) + (home-page "https://codeberg.org/grisha/newsraft") + (synopsis "Newsraft is a ncurses feed reader greatly inspired by newsboat.") + (description "Newsraft is a feed reader with ncurses user interface. It is +greatly inspired by Newsboat and tries to be its lightweight counterpart.") + (license license:isc)))