From 1108cebd7580efc39773918e55ae831ed0a33f52 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Tue, 28 Nov 2023 16:54:13 +0800 Subject: [PATCH] flake: fix ncurses on vivado Signed-off-by: Florian Agbuya --- flake.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 47c599b20..704ec3f71 100644 --- a/flake.nix +++ b/flake.nix @@ -43,9 +43,17 @@ cargo = rust; }); - vivadoDeps = pkgs: with pkgs; [ + vivadoDeps = pkgs: with pkgs; let + # Apply patch from https://github.com/nix-community/nix-environments/pull/54 + # to fix ncurses libtinfo.so's soname issue + ncurses' = ncurses5.overrideAttrs (old: { + configureFlags = old.configureFlags ++ [ "--with-termlib" ]; + postFixup = ""; + }); + in + [ libxcrypt-legacy - ncurses5 + (ncurses'.override { unicodeSupport = false; }) zlib libuuid xorg.libSM