quartus-prime-lite: add extraProfile parameter

For customizing /etc/profile in the FHS env.
This commit is contained in:
Bjørn Forsman 2023-10-23 20:22:42 +02:00
parent 38225432ee
commit c189f54eb5

View file

@ -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 = "";