diff options
author | Jason \"Don\" O'Conal <lovek323@gmail.com> | 2013-06-02 16:27:00 +1000 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2013-07-04 19:17:07 +0200 |
commit | f5a130b6b3ccd7c44c23357e32573cb2ab466c5a (patch) | |
tree | 590eab81e6ca0bb63cbb41bd857fe66193cc8d9c /pkgs/development/libraries/stfl/default.nix | |
parent | 7afc1149d9fd506dc682faebf23de9813fba3357 (diff) |
newsbeuter: add expression
Diffstat (limited to 'pkgs/development/libraries/stfl/default.nix')
-rw-r--r-- | pkgs/development/libraries/stfl/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/stfl/default.nix b/pkgs/development/libraries/stfl/default.nix new file mode 100644 index 0000000000000..9e3f749ca8f47 --- /dev/null +++ b/pkgs/development/libraries/stfl/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchurl, ncurses, libiconvOrEmpty }: + +stdenv.mkDerivation rec { + name = "stfl-0.22"; + + src = fetchurl { + url = "http://www.clifford.at/stfl/${name}.tar.gz"; + sha256 = "062lqlf3qhp8bcapbpc0k3wym7x6ngncql8jmx5x06p6679szp9d"; + }; + + buildInputs = [ ncurses ] ++ libiconvOrEmpty; + + buildPhase = '' + sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h + '' + ( stdenv.lib.optionalString stdenv.isDarwin '' + sed -i 's/LDLIBS += -lncursesw/LDLIBS += -lncursesw -liconv/' Makefile + sed -i s/-soname/-install_name/ Makefile + '' ) + '' + make + ''; + + installPhase = '' + DESTDIR=$out prefix=\"\" make install + + # some programs rely on libstfl.so.0 to be present, so link it + ln -s $out/lib/libstfl.so.0.22 $out/lib/libstfl.so.0 + ''; + + meta = { + homepage = http://www.clifford.at/stfl/; + description = "A library which implements a curses-based widget set for text terminals"; + maintainers = with stdenv.lib.maintainers; [ lovek323 ]; + license = stdenv.lib.licenses.lgpl3; + platforms = stdenv.lib.platforms.unix; + }; +} + |