From 080f136c3705edf46ecf49dfd27aa6b718315a7f Mon Sep 17 00:00:00 2001 From: Blake Easley <6708446+Jimmyscene@users.noreply.github.com> Date: Fri, 11 Jul 2025 01:50:40 -0700 Subject: [PATCH] Update package to use 'self' flake instead of ./. for src Small change, but determinate nix throws a warning every time this flake is built: You can make Nix evaluate faster and copy fewer files by replacing `./.` with the `self` flake input, or `builtins.path { path = ./.; name = "source"; }` I doubt the change matters much for such a small(and useful!) library, but the warning is quite annoying --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 249ab7c..960a5b7 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - outputs = { flake-utils, nixpkgs, ...}: + outputs = { self, flake-utils, nixpkgs, ...}: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; @@ -8,7 +8,7 @@ packages.default = pkgs.stdenv.mkDerivation { name = "fix-python"; - src = ./.; + src = self; phases = [ "unpackPhase" "installPhase" ]; installPhase = '' mkdir -p $out/bin