summaryrefslogtreecommitdiff
path: root/.devops/nix/scope.nix
blob: d295995a4b96b6350c8151a10a74b286a59e422e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  lib,
  newScope,
  llamaVersion ? "0.0.0",
}:

# We're using `makeScope` instead of just writing out an attrset
# because it allows users to apply overlays later using `overrideScope'`.
# Cf. https://noogle.dev/f/lib/makeScope

lib.makeScope newScope (
  self: {
    inherit llamaVersion;
    llama-cpp = self.callPackage ./package.nix { };
  }
)