~ruther/nix-fpga

ref: 0a072151f5c64b3d488b67a3dee3344ce57aa52b nix-fpga/pkgs/xilinx/vitis/fhs.nix -rw-r--r-- 410 bytes
0a072151 — Rutherther feat: add vitis 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, myLib, requireInstallDir ? false, ... }:

pkgs.buildFHSEnv {
  targetPkgs = (import ../common.nix).targetPkgs;

  name = "vitis";

  runScript = ''
    ${myLib.runScriptPrefix "vitis" requireInstallDir}
    if [[ ! -z $INSTALL_DIR ]]; then
      source $INSTALL_DIR/settings64.sh $INSTALL_DIR
    fi
    export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH
    exec "$@"
  '';

  meta.mainProgram = "vitis";
}
Do not follow this link