From fb35df9f914adc2f86c4d109f5a10e82118c6a1f Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Fri, 29 Nov 2024 04:58:46 -0700 Subject: [PATCH] julia.withPackages: expose pname/version and move things to passthru --- pkgs/development/julia-modules/default.nix | 30 ++++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/pkgs/development/julia-modules/default.nix b/pkgs/development/julia-modules/default.nix index 737cb9345a4b..b1761e19240a 100644 --- a/pkgs/development/julia-modules/default.nix +++ b/pkgs/development/julia-modules/default.nix @@ -165,21 +165,23 @@ in runCommand "julia-${julia.version}-env" { nativeBuildInputs = [makeWrapper]; - inherit julia; - inherit juliaWrapped; - meta = julia.meta; + passthru = { + inherit julia; + inherit juliaWrapped; + 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. - inherit dependencies; - inherit closureYaml; - inherit dependencyUuidToInfoYaml; - inherit dependencyUuidToRepoYaml; - inherit minimalRegistry; - inherit artifactsNix; - inherit overridesJson; - inherit overridesToml; - inherit projectAndDepot; + # 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. + inherit dependencies; + inherit closureYaml; + inherit dependencyUuidToInfoYaml; + inherit dependencyUuidToRepoYaml; + inherit minimalRegistry; + inherit artifactsNix; + inherit overridesJson; + inherit overridesToml; + inherit projectAndDepot; + }; } ('' mkdir -p $out/bin makeWrapper ${juliaWrapped}/bin/julia $out/bin/julia \