Commit d74838df authored by Robert Hensing's avatar Robert Hensing
Browse files

nixVersions.nix_2_26: Add .overrideScope

parent 493f1e3b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -414,5 +414,17 @@ in
    */
    overrideSource = src: (scope.overrideSource src).nix-everything;

    /**
      Override any internals of the Nix package set.

      Single argument: the extension function to apply to the package set (finalScope: prevScope: { ... })

      Example:
      ```
      overrideScope (finalScope: prevScope: { aws-sdk-cpp = null; })
      ```
    */
    overrideScope = f: (scope.overrideScope f).nix-everything;

  };
}