nixpkgs/pkgs/by-name/sa/sacc/package.nix

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

37 lines
879 B
Nix
Raw Normal View History

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
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"OSCFLAGS=-D_DARWIN_C_SOURCE"
];
2020-07-22 21:21:19 +00:00
postPatch = ''
substituteInPlace config.mk \
--replace curses ncurses \
--replace "/usr/local" "$out"
'';
meta = with lib; {
2020-07-22 21:21:19 +00:00
description = "Terminal gopher client";
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;
};
}