Просмотр исходного кода

nix: add a comment about makeScope

Someone Serge 2 лет назад
Родитель
Сommit
5e97ec91ae
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      .devops/nix/scope.nix

+ 4 - 0
.devops/nix/scope.nix

@@ -4,6 +4,10 @@
   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;