anchor.diff:  
     # 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-pcre=${pcre.dev}"
       "--with-png=${libpng.dev}"
  +    "--with-readline=${readline.dev}"
       "--with-z=${zlib.dev}"
  -    "--with-pcre=${pcre.dev}"
  -    "--with-readline=${readline.dev}"
     ];
   
     buildInputs = [
  -    pcre libpng zlib readline
  +    libpng
  +    pcre
  +    readline
  +    zlib
     ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ libiconv ];
   
     propagatedBuildInputs = [ ncurses ];
  
positive.code:   '';
  
    meta = with stdenv.lib; {
      description = "A multi-platform programmer's library designed to allow a developer to create robust software";
      homepage = "http://www.jedsoft.org/slang/";
      license = licenses.gpl2Plus;
      maintainers = with maintainers; [ ];
      platforms = platforms.unix;
    };
  }
  
negative.code: { stdenv, fetchurl
  , libiconv
  , libpng
  , ncurses
  , pcre
  , readline
  , zlib
  }:
  
  stdenv.mkDerivation rec {
    pname = "slang";
    version = "2.3.2";
  
    src = fetchurl {
      url = "https://www.jedsoft.org/releases/slang/${pname}-${version}.tar.bz2";
      sha256 = "sha256-/J47D8T2fDwfbUPJDBalxC0Re44oRXxbRoMbi1064xo=";
    };
  
    outputs = [ "out" "dev" "man" "doc" ];
  