3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/newsreaders/slrn/default.nix

32 lines
771 B
Nix
Raw Normal View History

2014-10-27 16:46:14 +00:00
{ stdenv, fetchurl
, slang, ncurses }:
2014-10-27 16:46:14 +00:00
let version = "1.0.2"; in
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";
};
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 ];
2014-10-27 16:46:14 +00:00
meta = with stdenv.lib; {
description = "The slrn (S-Lang read news) newsreader";
homepage = http://slrn.sourceforge.net/index.html;
2014-10-27 16:46:14 +00:00
maintainers = with maintainers; [ emery ];
license = licenses.gpl2;
};
}