nixpkgs/pkgs/applications/networking/gopher/sacc/default.nix

32 lines
780 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ncurses
2020-07-22 22:21:19 +01:00
, patches ? [] # allow users to easily override config.def.h
}:
stdenv.mkDerivation rec {
pname = "sacc";
2021-02-04 10:28:28 +00:00
version = "1.03";
2020-07-22 22:21:19 +01:00
2020-09-26 12:49:39 +01:00
src = fetchurl {
url = "ftp://bitreich.org/releases/sacc/sacc-${version}.tgz";
2021-02-04 10:28:28 +00:00
sha512 = "sha512-vOjAGBM2+080JZv4C4b5dNRTTX45evWFEJfK1DRaWCYrHRCAe07QdEIrHhbaIxhSYfrBd3D1y75rmDnuPC4THA==";
2020-07-22 22:21:19 +01:00
};
inherit patches;
buildInputs = [ ncurses ];
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;
};
}