3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/gopher/sacc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
884 B
Nix
Raw Normal View History

2021-10-13 21:12:24 +01:00
{ lib, stdenv, fetchurl, ncurses, libressl
2020-07-22 22:21:19 +01:00
, patches ? [] # allow users to easily override config.def.h
}:
stdenv.mkDerivation rec {
pname = "sacc";
2021-12-13 13:10:05 +00:00
version = "1.05";
2020-07-22 22:21:19 +01:00
2020-09-26 12:49:39 +01:00
src = fetchurl {
2021-12-13 13:10:05 +00:00
url = "ftp://bitreich.org/releases/sacc/sacc-${version}.tar.gz";
sha512 = "080vpacipdis396lrw3fxc1z7h2d0njm2zi63kvlk0n2m1disv97c968zx8dp76kfw1s03nvvr6v3vnpfkkywiz1idjc92s5rgcbsk1";
2020-07-22 22:21:19 +01:00
};
inherit patches;
2021-10-13 21:12:24 +01:00
buildInputs = [ ncurses libressl ];
2020-07-22 22:21:19 +01:00
CFLAGS = lib.optionals stdenv.isDarwin [
"-D_DARWIN_C_SOURCE"
];
2020-07-22 22:21:19 +01:00
postPatch = ''
substituteInPlace config.mk \
--replace curses ncurses \
--replace "/usr/local" "$out"
'';
meta = with lib; {
2020-07-22 22:21:19 +01:00
description = "A terminal gopher client";
homepage = "gopher://bitreich.org/1/scm/sacc";
license = licenses.isc;
maintainers = [ maintainers.sternenseemann ];
platforms = platforms.unix;
};
}