2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, libiconv }:
|
2013-06-02 07:27:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-09 19:42:54 +00:00
|
|
|
pname = "stfl";
|
|
|
|
version = "0.24";
|
2013-06-02 07:27:00 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-09 19:42:54 +00:00
|
|
|
url = "http://www.clifford.at/stfl/stfl-${version}.tar.gz";
|
2018-02-28 00:49:17 +00:00
|
|
|
sha256 = "1460d5lc780p3q38l3wc9jfr2a7zlyrcra0li65aynj738cam9yl";
|
2013-06-02 07:27:00 +01:00
|
|
|
};
|
|
|
|
|
2014-11-26 23:16:50 +00:00
|
|
|
buildInputs = [ ncurses libiconv ];
|
2013-06-02 07:27:00 +01:00
|
|
|
|
2021-11-17 00:24:31 +00:00
|
|
|
preBuild = ''
|
2016-08-12 06:08:08 +01:00
|
|
|
sed -i s/gcc/cc/g Makefile
|
2013-06-02 07:27:00 +01:00
|
|
|
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
|
2021-11-17 00:24:31 +00:00
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
2013-06-02 07:27:00 +01:00
|
|
|
sed -i s/-soname/-install_name/ Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
DESTDIR=$out prefix=\"\" make install
|
|
|
|
|
|
|
|
# some programs rely on libstfl.so.0 to be present, so link it
|
2018-02-28 00:49:17 +00:00
|
|
|
ln -s $out/lib/libstfl.so.0.24 $out/lib/libstfl.so.0
|
2013-06-02 07:27:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-11-09 19:53:19 +00:00
|
|
|
homepage = "http://www.clifford.at/stfl/";
|
2013-06-02 07:27:00 +01:00
|
|
|
description = "A library which implements a curses-based widget set for text terminals";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ lovek323 ];
|
2021-11-09 19:53:19 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
platforms = lib.platforms.unix;
|
2013-06-02 07:27:00 +01:00
|
|
|
};
|
|
|
|
}
|