31 lines
712 B
Nix
31 lines
712 B
Nix
{ stdenv, fetchurl,
|
|
slang, ncurses
|
|
}:
|
|
|
|
let version = "1.0.1"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "slrn-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.jedsoft.org/slrn/download/slrn-1.0.1.tar.gz";
|
|
sha256 = "1rmaprfwvshzkv0c5vi43839cz3laqjpl306b9z0ghwyjdha1d06";
|
|
};
|
|
|
|
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|"
|
|
'';
|
|
|
|
configureFlags = "--with-slang=${slang}";
|
|
|
|
buildInputs = [ slang ncurses ];
|
|
|
|
meta = {
|
|
description = "The slrn (S-Lang read news) newsreader";
|
|
homepage = http://slrn.sourceforge.net/index.html;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
};
|
|
}
|