diff --git a/pkgs/development/libraries/slang/default.nix b/pkgs/development/libraries/slang/default.nix index 9b7905c180a9..010590b0fcd9 100644 --- a/pkgs/development/libraries/slang/default.nix +++ b/pkgs/development/libraries/slang/default.nix @@ -1,10 +1,19 @@ -{ stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline, libiconv }: +{ stdenv, fetchurl +, libiconv +, libpng +, ncurses +, pcre +, readline +, zlib +}: stdenv.mkDerivation rec { - name = "slang-2.3.2"; + pname = "slang"; + version = "2.3.2"; + src = fetchurl { - url = "https://www.jedsoft.org/releases/slang/${name}.tar.bz2"; - sha256 = "06p379fqn6w38rdpqi98irxi2bf4llb0rja3dlgkqz7nqh7kp7pw"; + url = "https://www.jedsoft.org/releases/slang/${pname}-${version}.tar.bz2"; + sha256 = "sha256-/J47D8T2fDwfbUPJDBalxC0Re44oRXxbRoMbi1064xo="; }; outputs = [ "out" "dev" "man" "doc" ]; @@ -13,21 +22,24 @@ stdenv.mkDerivation rec { # Fix some wrong hardcoded paths preConfigure = '' - sed -i -e "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" configure - sed -i -e "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" src/sltermin.c - sed -i -e "s|/bin/ln|ln|" src/Makefile.in - sed -i -e "s|-ltermcap|-lncurses|" ./configure + sed -ie "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" configure + sed -ie "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" src/sltermin.c + sed -ie "s|/bin/ln|ln|" src/Makefile.in + sed -ie "s|-ltermcap|-lncurses|" ./configure ''; configureFlags = [ - "--with-png=${libpng.dev}" - "--with-z=${zlib.dev}" "--with-pcre=${pcre.dev}" + "--with-png=${libpng.dev}" "--with-readline=${readline.dev}" + "--with-z=${zlib.dev}" ]; buildInputs = [ - pcre libpng zlib readline + libpng + pcre + readline + zlib ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ libiconv ]; propagatedBuildInputs = [ ncurses ]; @@ -41,10 +53,30 @@ stdenv.mkDerivation rec { ''; meta = with stdenv.lib; { - description = "A multi-platform programmer's library designed to allow a developer to create robust software"; + description = "A small, embeddable multi-platform programming library"; + longDescription = '' + S-Lang is an interpreted language that was designed from the start to be + easily embedded into a program to provide it with a powerful extension + language. Examples of programs that use S-Lang as an extension language + include the jed text editor and the slrn newsreader. Although S-Lang does + not exist as a separate application, it is distributed with a quite + capable program called slsh ("slang-shell") that embeds the interpreter + and allows one to execute S-Lang scripts, or simply experiment with S-Lang + at an interactive prompt. Many of the the examples in this document are + presented in the context of one of the above applications. + + S-Lang is also a programmer's library that permits a programmer to develop + sophisticated platform-independent software. In addition to providing the + S-Lang interpreter, the library provides facilities for screen management, + keymaps, low-level terminal I/O, etc. However, this document is concerned + only with the extension language and does not address these other features + of the S-Lang library. For information about the other components of the + library, the reader is referred to the S-Lang Library C Programmer's + Guide. + ''; homepage = "http://www.jedsoft.org/slang/"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ AndersonTorres ]; platforms = platforms.unix; }; }