mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-04 01:42:53 +03:00
Ncurses: more compatibility .la's
svn path=/nixpkgs/branches/stdenv-updates/; revision=10604
This commit is contained in:
parent
07e6d98fd5
commit
80d81c1a82
22
pkgs/development/libraries/ncurses/5.6.nix
Normal file
22
pkgs/development/libraries/ncurses/5.6.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
args: with args;
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ncurses-5.6";
|
||||||
|
src = fetchurl {
|
||||||
|
url = mirror://gnu/ncurses/ncurses-5.6.tar.gz;
|
||||||
|
sha256 = "1m94axgq3y9c4ld0sba63rls1611fncra49ppijpv8w32srw5jpr";
|
||||||
|
};
|
||||||
|
configureFlags = [ "--with-shared" "--without-normal"
|
||||||
|
"--includedir=\${out}/include" "--without-debug"]
|
||||||
|
++ (if unicode then ["--enable-widec"] else []);
|
||||||
|
postInstall= if unicode then "
|
||||||
|
chmod -v 644 $out/lib/libncurses++w.a
|
||||||
|
for lib in curses ncurses form panel menu; do
|
||||||
|
echo \"INPUT(-l\${lib}w)\" > $out/lib/lib\${lib}.so
|
||||||
|
done
|
||||||
|
echo \"INPUT(-lncursesw)\" > $out/lib/libcursesw.so
|
||||||
|
" else "
|
||||||
|
chmod -v 644 $out/lib/libncurses++.a
|
||||||
|
echo \"INPUT(-lncurses)\" > $out/lib/libcurses.so
|
||||||
|
";
|
||||||
|
}
|
@ -1,19 +0,0 @@
|
|||||||
{stdenv, fetchurl, unicode ? true}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "ncurses-5.6";
|
|
||||||
src = fetchurl {
|
|
||||||
url = mirror://gnu/ncurses/ncurses-5.6.tar.gz;
|
|
||||||
md5 = "b6593abe1089d6aab1551c105c9300e3";
|
|
||||||
};
|
|
||||||
configureFlags="--with-shared --includedir=\${out}/include"+(if unicode then " --enable-widec " else " ") +" --without-debug";
|
|
||||||
postInstall= if unicode then "
|
|
||||||
chmod -v 644 $out/lib/libncurses++w.a
|
|
||||||
for lib in curses ncurses form panel menu; do
|
|
||||||
rm -vf $out/lib/lib\${lib}.so
|
|
||||||
echo \"INPUT(-l\${lib}w)\" > $out/lib/lib\${lib}.so
|
|
||||||
ln -svf lib\${lib}w.a $out/lib/lib\${lib}.a
|
|
||||||
ln -svf lib\${lib}w.so.5 $out/lib/lib\${lib}.so.5
|
|
||||||
done;
|
|
||||||
" else "";
|
|
||||||
}
|
|
@ -2465,7 +2465,7 @@ rec {
|
|||||||
inherit fetchurl stdenv mysql libtool zlib unixODBC;
|
inherit fetchurl stdenv mysql libtool zlib unixODBC;
|
||||||
};
|
};
|
||||||
|
|
||||||
ncurses = import ../development/libraries/ncurses {
|
ncurses = selectVersion ../development/libraries/ncurses "5.6" {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
unicode = (system != "i686-cygwin");
|
unicode = (system != "i686-cygwin");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user