julia.withPackages: expose pname/version and move things to passthru

This commit is contained in:
Tom McLaughlin 2024-11-29 04:58:46 -07:00
parent 078f1251c0
commit fb35df9f91

View File

@ -165,9 +165,10 @@ in
runCommand "julia-${julia.version}-env" {
nativeBuildInputs = [makeWrapper];
passthru = {
inherit julia;
inherit juliaWrapped;
meta = julia.meta;
inherit (julia) pname version meta;
# Expose the steps we used along the way in case the user wants to use them, for example to build
# expressions and build them separately to avoid IFD.
@ -180,6 +181,7 @@ runCommand "julia-${julia.version}-env" {
inherit overridesJson;
inherit overridesToml;
inherit projectAndDepot;
};
} (''
mkdir -p $out/bin
makeWrapper ${juliaWrapped}/bin/julia $out/bin/julia \