scope.nix 514 B

12345678910111213141516171819
  1. {
  2. lib,
  3. newScope,
  4. llamaVersion ? "0.0.0",
  5. }:
  6. # We're using `makeScope` instead of just writing out an attrset
  7. # because it allows users to apply overlays later using `overrideScope'`.
  8. # Cf. https://noogle.dev/f/lib/makeScope
  9. lib.makeScope newScope (
  10. self: {
  11. inherit llamaVersion;
  12. llama-cpp = self.callPackage ./package.nix { };
  13. docker = self.callPackage ./docker.nix { };
  14. docker-min = self.callPackage ./docker.nix { interactive = false; };
  15. sif = self.callPackage ./sif.nix { };
  16. }
  17. )