Commit c189f54e authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

quartus-prime-lite: add extraProfile parameter

For customizing /etc/profile in the FHS env.
parent 38225432
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, withQuesta ? true
, supportedDevices ? [ "Arria II" "Cyclone V" "Cyclone IV" "Cyclone 10 LP" "MAX II/V" "MAX 10 FPGA" ]
, unwrapped ? callPackage ./quartus.nix { inherit unstick supportedDevices withQuesta; }
, extraProfile ? ""
}:

let
@@ -114,7 +115,7 @@ in buildFHSEnv rec {
    if [ "$NIXPKGS_IS_QUESTA_WRAPPER" != 1 ]; then
        export LD_PRELOAD=''${LD_PRELOAD:+$LD_PRELOAD:}/usr/lib/libudev.so.0
    fi
  '';
  '' + extraProfile;

  # Run the wrappers directly, instead of going via bash.
  runScript = "";