2014-10-27 16:46:14 +00:00
|
|
|
{ stdenv, fetchurl
|
2016-01-01 03:38:49 +00:00
|
|
|
, slang, ncurses, openssl }:
|
2014-03-21 18:07:56 +00:00
|
|
|
|
2014-10-27 16:46:14 +00:00
|
|
|
let version = "1.0.2"; in
|
2014-03-21 18:07:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "slrn-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-27 16:46:14 +00:00
|
|
|
url = "http://www.jedsoft.org/releases/slrn/slrn-${version}.tar.gz";
|
|
|
|
sha256 = "1gn6m2zha2nnnrh9lz3m3nrqk6fgfij1wc53pg25j7sdgvlziv12";
|
2014-03-21 18:07:56 +00:00
|
|
|
};
|
|
|
|
|
2014-03-21 20:32:21 +00: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 22:44:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-slang=${slang.dev}"
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
];
|
2014-03-21 20:32:21 +00:00
|
|
|
|
2016-01-01 03:38:49 +00:00
|
|
|
buildInputs = [ slang ncurses openssl ];
|
2014-03-21 18:07:56 +00:00
|
|
|
|
2014-10-27 16:46:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The slrn (S-Lang read news) newsreader";
|
2014-03-21 18:07:56 +00:00
|
|
|
homepage = http://slrn.sourceforge.net/index.html;
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2014-10-27 16:46:14 +00:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2014-03-21 18:07:56 +00:00
|
|
|
};
|
|
|
|
}
|