2021-10-13 20:12:24 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, libressl
|
2020-07-22 21:21:19 +00:00
|
|
|
, patches ? [] # allow users to easily override config.def.h
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sacc";
|
2023-10-19 04:30:33 +00:00
|
|
|
version = "1.07";
|
2020-07-22 21:21:19 +00:00
|
|
|
|
2020-09-26 11:49:39 +00:00
|
|
|
src = fetchurl {
|
2021-12-13 13:10:05 +00:00
|
|
|
url = "ftp://bitreich.org/releases/sacc/sacc-${version}.tar.gz";
|
2023-10-19 04:30:33 +00:00
|
|
|
hash = "sha256-LdEeZH+JWb7iEEzikAXaxG0N5GMPxjgTId4THLgdU2w=";
|
2020-07-22 21:21:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit patches;
|
|
|
|
|
2021-10-13 20:12:24 +00:00
|
|
|
buildInputs = [ ncurses libressl ];
|
2020-07-22 21:21:19 +00:00
|
|
|
|
2024-11-22 08:50:54 +00:00
|
|
|
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
"OSCFLAGS=-D_DARWIN_C_SOURCE"
|
2021-05-04 12:42:30 +00:00
|
|
|
];
|
|
|
|
|
2020-07-22 21:21:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace config.mk \
|
|
|
|
--replace curses ncurses \
|
|
|
|
--replace "/usr/local" "$out"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-22 21:21:19 +00:00
|
|
|
description = "Terminal gopher client";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "sacc";
|
2020-07-22 21:21:19 +00:00
|
|
|
homepage = "gopher://bitreich.org/1/scm/sacc";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|