From 0f3744a12090fcf917f9dbcaa1bf8c44df6f5321 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 5 Jun 2021 16:47:10 +0200 Subject: [PATCH] snownews: init at unstable-2021-06-04 --- flake.nix | 3 +++ snownews/default.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 snownews/default.nix diff --git a/flake.nix b/flake.nix index a36dad7..5dc9a36 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,8 @@ oha = callPackage ./oha { }; + snownews = callPackage ./snownews { }; + textidote = callPackage ./textidote { }; unxwb = callPackage ./unxwb { }; @@ -71,6 +73,7 @@ cyanrip deemix oha + snownews textidote unxwb vgmstream diff --git a/snownews/default.nix b/snownews/default.nix new file mode 100644 index 0000000..4acd3ef --- /dev/null +++ b/snownews/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, which, curl, gettext, libxml2, ncurses, openssl }: + +stdenv.mkDerivation rec { + pname = "snownews"; + version = "unstable-2021-06-04"; + + src = fetchFromGitHub { + owner = "msharov"; + repo = pname; + rev = "f0834270dfd54cd6075a603c55e92a490c7d0ace"; + sha256 = "1rqnj6079dhzwlav5physk1h6pxnhbax2bzg3dcp8sr2b7wdzwcz"; + }; + + patches = [ + (fetchpatch { + name = "0001-Encode-feed-title-and-url-for-urls.opml.patch"; + url = "https://github.com/sbruder/snownews/commit/01b291ebd04c67f557b7bf8233fa43f5cda55294.patch"; + sha256 = "0q8b2amidndd2yyhdxhqxm4an2f6yc3aacsf84krbfr4nr37fqck"; + }) + ]; + + nativeBuildInputs = [ pkg-config which ]; + buildInputs = [ curl gettext libxml2 ncurses openssl ]; + + meta = with lib; { + description = "A text-mode RSS feed reader"; + homepage = "https://github.com/msharov/snownews"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.unix; + }; +}