1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

libtinfo: init at 6.4 (#285347)

This commit is contained in:
Doron Behar 2024-11-04 09:11:05 +02:00 committed by GitHub
commit b83db93b6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 7 deletions

View file

@ -0,0 +1,8 @@
{
ncurses,
}:
ncurses.override {
unicodeSupport = false;
withTermlib = true;
}

View file

@ -9,6 +9,7 @@
, enableStatic ? stdenv.hostPlatform.isStatic
, withCxx ? !stdenv.hostPlatform.useAndroidPrebuilt
, mouseSupport ? false, gpm
, withTermlib ? false
, unicodeSupport ? true
, testers
, binlore
@ -38,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional (!withCxx) "--without-cxx"
++ lib.optional (abiVersion == "5") "--with-abi-version=5"
++ lib.optional stdenv.hostPlatform.isNetBSD "--enable-rpath"
++ lib.optional withTermlib "--with-termlib"
++ lib.optionals stdenv.hostPlatform.isWindows [
"--enable-sp-funcs"
"--enable-term-driver"

View file

@ -63,13 +63,8 @@ in {
libtinfo = makeSharedObjectTest (getSharedObjectFromDebian "libedit.so.2.0.70" (fetchurl {
url = "mirror://debian/pool/main/libe/libedit/libedit2_3.1-20221030-2_amd64.deb";
hash = "sha256-HPFKvycW0yedsS0GV6VzfPcAdKHnHTvfcyBmJePInOY=";
})) (p: let
ncurses' = p.ncurses.overrideAttrs (old: {
configureFlags = old.configureFlags ++ [ "--with-termlib" ];
postFixup = "";
});
in [
(ncurses'.override { unicodeSupport = false; })
})) (p: [
p.libtinfo
p.libbsd
]);