2014-10-27 09:46:14 -07:00
|
|
|
{ stdenv, fetchurl
|
2015-12-31 19:38:49 -08:00
|
|
|
, slang, ncurses, openssl }:
|
2014-03-21 11:07:56 -07:00
|
|
|
|
2019-08-08 18:42:10 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "slrn";
|
|
|
|
version = "1.0.3a";
|
2014-03-21 11:07:56 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-08 18:42:10 -07:00
|
|
|
url = "http://www.jedsoft.org/releases/slrn/slrn-${version}.tar.bz2";
|
|
|
|
sha256 = "1b1d9iikr60w0vq86y9a0l4gjl0jxhdznlrdp3r405i097as9a1v";
|
2014-03-21 11:07:56 -07:00
|
|
|
};
|
|
|
|
|
2014-03-21 13:32:21 -07:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e "s|-ltermcap|-lncurses|" configure
|
|
|
|
sed -i autoconf/Makefile.in src/Makefile.in \
|
|
|
|
-e "s|/bin/cp|cp|" \
|
|
|
|
-e "s|/bin/rm|rm|"
|
|
|
|
'';
|
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-slang=${slang.dev}"
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
];
|
2014-03-21 13:32:21 -07:00
|
|
|
|
2015-12-31 19:38:49 -08:00
|
|
|
buildInputs = [ slang ncurses openssl ];
|
2014-03-21 11:07:56 -07:00
|
|
|
|
2014-10-27 09:46:14 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The slrn (S-Lang read news) newsreader";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://slrn.sourceforge.net/index.html";
|
2015-12-05 13:41:25 -08:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-10-27 09:46:14 -07:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; linux;
|
2014-03-21 11:07:56 -07:00
|
|
|
};
|
|
|
|
}
|