sage: refactor passthru on sage-env (#417592)

This commit is contained in:
Philip Taron
2025-06-17 09:37:23 -07:00
committed by GitHub
+6 -5
View File
@@ -102,6 +102,12 @@ in
writeTextFile rec {
name = "sage-env";
destination = "/${name}";
passthru = {
lib = sagelib;
docbuild = sage-docbuild;
};
text =
''
export PKG_CONFIG_PATH='${
@@ -205,8 +211,3 @@ writeTextFile rec {
}''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
'';
}
// {
# equivalent of `passthru`, which `writeTextFile` doesn't support
lib = sagelib;
docbuild = sage-docbuild;
}