]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
flake.nix: add a comment about flakes vs nix
authorSomeone Serge <redacted>
Sun, 21 Jan 2024 03:41:37 +0000 (03:41 +0000)
committerSomeone <redacted>
Mon, 22 Jan 2024 12:19:30 +0000 (12:19 +0000)
flake.nix

index ec62c773a644f7579673d988f1f99922756deef7..a776ba0242ca0b2a9dc8a7f9ca70effec688819f 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -1,3 +1,17 @@
+# The flake interface to llama.cpp's Nix expressions. The flake is used as a
+# more discoverable entry-point, as well as a way to pin the dependencies and
+# expose default outputs, including the outputs built by the CI.
+
+# For more serious applications involving some kind of customization  you may
+# want to consider consuming the overlay, or instantiating `llamaPackages`
+# directly:
+#
+# ```nix
+# pkgs.callPackage ${llama-cpp-root}/.devops/nix/scope.nix { }`
+# ```
+
+# Cf. https://jade.fyi/blog/flakes-arent-real/ for a more detailed exposition
+# of the relation between Nix and the Nix Flakes.
 {
   description = "Port of Facebook's LLaMA model in C/C++";