commit db0f48bc744c67ebc08848a12ebf42891fcff09d
parent fe451d5fc1c95c3a2f3cbe130538899469012cf1
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Sun, 25 Jul 2021 15:22:20 +0300
Add sfeed_curses
Diffstat:
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -291,6 +291,7 @@ lib.makeScope newScope (
scc = callPackage ./suckless/scc { };
scroll = callPackage ./suckless/scroll { };
sfeed = callPackage ./suckless/sfeed { };
+ sfeed_curses = callPackage ./suckless/sfeed_curses { };
sthkd = callPackage ./suckless/sthkd { };
xprompt = callPackage ./suckless/xprompt { };
}
diff --git a/pkgs/suckless/sfeed_curses/default.nix b/pkgs/suckless/sfeed_curses/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, fetchgit, ncurses }:
+
+stdenv.mkDerivation rec {
+ pname = "sfeed_curses";
+ version = "0.9.13";
+
+ src = fetchgit {
+ url = "git://git.codemadness.org/sfeed_curses";
+ rev = version;
+ sha256 = "sha256-Ckv9yGGYLO+zCsu30gqJwSJyG+HLuEV/91c6/xVI1c4=";
+ };
+
+ postPatch = ''
+ substituteInPlace Makefile \
+ --replace "-lcurses" "-lncurses"
+ '';
+
+ buildInputs = [ ncurses ];
+
+ makeFlags = [ "PREFIX=$(out)" ];
+
+ meta = with lib; {
+ description = "sfeed curses UI";
+ homepage = "https://git.codemadness.org/sfeed_curses/";
+ license = licenses.isc;
+ platforms = platforms.unix;
+ maintainers = [ maintainers.sikmir ];
+ };
+}