From 3f738f00e0d45cb348d761f57ff0d1c731f14584 Mon Sep 17 00:00:00 2001 From: anntnzrb Date: Wed, 8 Oct 2025 21:14:24 -0500 Subject: [PATCH] perf: replace `./` with `self` to improve evaluation speed --- flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 6ac25f2..7d07296 100644 --- a/flake.nix +++ b/flake.nix @@ -14,11 +14,14 @@ }; }; - outputs = inputs: let + outputs = { + self, + ... + } @ inputs: let core-inputs = inputs // { - src = ./.; + src = self; }; # Create the library, extending the nixpkgs library and merging @@ -69,8 +72,8 @@ raw-config = config; config = { - root = ./.; - src = ./.; + root = self; + src = self; namespace = "snowfall"; lib-dir = "snowfall-lib"; @@ -82,7 +85,7 @@ internal-lib = let lib = mkLib { - src = ./.; + src = self; inputs = inputs