1 { lib, stdenv, fetchurl, ncurses, libressl
2 , patches ? [] # allow users to easily override config.def.h
5 stdenv.mkDerivation rec {
10 url = "ftp://bitreich.org/releases/sacc/sacc-${version}.tar.gz";
11 hash = "sha256-LdEeZH+JWb7iEEzikAXaxG0N5GMPxjgTId4THLgdU2w=";
16 buildInputs = [ ncurses libressl ];
18 CFLAGS = lib.optionals stdenv.isDarwin [
23 substituteInPlace config.mk \
24 --replace curses ncurses \
25 --replace "/usr/local" "$out"
29 description = "A terminal gopher client";
31 homepage = "gopher://bitreich.org/1/scm/sacc";
32 license = licenses.isc;
33 maintainers = [ maintainers.sternenseemann ];
34 platforms = platforms.unix;