From 931b3172c40bc19d5f8b7e47639c61d7b10a5766 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Fri, 17 Nov 2023 03:49:24 +0800 Subject: [PATCH] flake: fix vivado on recent nixpkgs (closes #2274) Signed-off-by: Florian Agbuya --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 509ad62bd..e3804f418 100644 --- a/flake.nix +++ b/flake.nix @@ -173,7 +173,9 @@ vivado = pkgs.buildFHSEnv { name = "vivado"; targetPkgs = vivadoDeps; - profile = "set -e; source /opt/Xilinx/Vivado/2022.2/settings64.sh"; + # Include /usr/lib to FHS env to fix `libtinfo.so.5` not found error + # Path has been removed in https://github.com/NixOS/nixpkgs/pull/263201 + profile = "set -e; source /opt/Xilinx/Vivado/2022.2/settings64.sh; export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH"; runScript = "vivado"; };