Unverified Commit 2e928d77 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

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

parents a18e4adc 3d517000
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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;
}