1 { lib, stdenv, fetchurl, ncurses, libiconv }:
3 stdenv.mkDerivation rec {
7 url = "http://www.clifford.at/stfl/${name}.tar.gz";
8 sha256 = "1460d5lc780p3q38l3wc9jfr2a7zlyrcra0li65aynj738cam9yl";
11 buildInputs = [ ncurses libiconv ];
14 sed -i s/gcc/cc/g Makefile
15 sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
16 '' + ( lib.optionalString stdenv.isDarwin ''
17 sed -i s/-soname/-install_name/ Makefile
23 DESTDIR=$out prefix=\"\" make install
25 # some programs rely on libstfl.so.0 to be present, so link it
26 ln -s $out/lib/libstfl.so.0.24 $out/lib/libstfl.so.0
30 homepage = "http://www.clifford.at/stfl/";
31 description = "A library which implements a curses-based widget set for text terminals";
32 maintainers = with lib.maintainers; [ lovek323 ];
33 license = lib.licenses.lgpl3;
34 platforms = lib.platforms.unix;