HeavyX/eda/vivado.nix

25 lines
491 B
Nix
Raw Permalink Normal View History

2019-03-19 23:00:36 +08:00
# Install Vivado in /opt and add to /etc/nixos/configuration.nix:
# nix.sandboxPaths = ["/opt"];
2019-11-03 15:02:48 +08:00
{ pkgs, vivadoPath ? "/opt/Xilinx/Vivado/2019.2" }:
pkgs.buildFHSUserEnv {
name = "vivado";
targetPkgs = pkgs: (
with pkgs; [
ncurses5
zlib
libuuid
xorg.libSM
xorg.libICE
xorg.libXrender
xorg.libX11
xorg.libXext
xorg.libXtst
xorg.libXi
]
);
profile = "source ${vivadoPath}/settings64.sh";
runScript = "vivado";
}