mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
libtinfo: init at 6.4 (#285347)
This commit is contained in:
commit
b83db93b6b
8
pkgs/by-name/li/libtinfo/package.nix
Normal file
8
pkgs/by-name/li/libtinfo/package.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
ncurses,
|
||||
}:
|
||||
|
||||
ncurses.override {
|
||||
unicodeSupport = false;
|
||||
withTermlib = true;
|
||||
}
|
@ -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"
|
||||
|
@ -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
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user