slang: 2.3.1a -> 2.3.2
This commit is contained in:
parent
1d9330d63a
commit
6e62f01912
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline, libiconv }:
|
{ stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "slang-2.3.1a";
|
name = "slang-2.3.2";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.jedsoft.org/releases/slang/${name}.tar.bz2";
|
url = "http://www.jedsoft.org/releases/slang/${name}.tar.bz2";
|
||||||
sha256 = "0dlcy0hn0j6cj9qj5x6hpb0axifnvzzmv5jqq0wq14fygw0c7w2l";
|
sha256 = "06p379fqn6w38rdpqi98irxi2bf4llb0rja3dlgkqz7nqh7kp7pw";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" "doc" ];
|
outputs = [ "out" "dev" "man" "doc" ];
|
||||||
@ -16,10 +16,23 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e "s|/bin/ln|ln|" src/Makefile.in
|
sed -i -e "s|/bin/ln|ln|" src/Makefile.in
|
||||||
sed -i -e "s|-ltermcap|-lncurses|" ./configure
|
sed -i -e "s|-ltermcap|-lncurses|" ./configure
|
||||||
'';
|
'';
|
||||||
configureFlags = "--with-png=${libpng.dev} --with-z=${zlib.dev} --with-pcre=${pcre.dev} --with-readline=${readline.dev}";
|
|
||||||
buildInputs = [ pcre libpng zlib readline ] ++ stdenv.lib.optionals (stdenv.isDarwin) [ libiconv ];
|
configureFlags = [
|
||||||
|
"--with-png=${libpng.dev}"
|
||||||
|
"--with-z=${zlib.dev}"
|
||||||
|
"--with-pcre=${pcre.dev}"
|
||||||
|
"--with-readline=${readline.dev}"
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pcre libpng zlib readline
|
||||||
|
] ++ stdenv.lib.optionals (stdenv.isDarwin) [ libiconv ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ ncurses ];
|
propagatedBuildInputs = [ ncurses ];
|
||||||
|
|
||||||
|
# slang 2.3.2 does not support parallel building
|
||||||
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
find "$out"/lib/ -name '*.so' -exec chmod +x "{}" \;
|
find "$out"/lib/ -name '*.so' -exec chmod +x "{}" \;
|
||||||
sed '/^Libs:/s/$/ -lncurses/' -i "$dev"/lib/pkgconfig/slang.pc
|
sed '/^Libs:/s/$/ -lncurses/' -i "$dev"/lib/pkgconfig/slang.pc
|
||||||
@ -29,7 +42,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A multi-platform programmer's library designed to allow a developer to create robust software";
|
description = "A multi-platform programmer's library designed to allow a developer to create robust software";
|
||||||
homepage = http://www.jedsoft.org/slang/;
|
homepage = http://www.jedsoft.org/slang/;
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ fuuzetsu ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.fuuzetsu ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user