From 544c6ffc61d6829e4d558ec1e8b93887d875ef18 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 12 Jul 2026 09:38:57 +0000 Subject: [PATCH] flake: use self.outPath instead of fetchFromGitea with hardcoded rev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The overlay was pinning a specific commit via fetchFromGitea, requiring manual hash updates every time the fork changed. Now uses self.outPath which points to the flake's own source — the consuming repo's flake.lock tracks the rev and hash automatically. --- flake.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 4f46f05..1c949cd 100644 --- a/flake.nix +++ b/flake.nix @@ -21,13 +21,9 @@ default = final: prev: { pinchflat = prev.pinchflat.overrideAttrs ( old: { - src = prev.fetchFromGitea { - domain = "gitea.bueso.eu"; - owner = "hermes-agent"; - repo = "pinchflat"; - rev = "a3b75771e16662facd2dc73575d883577be8707a"; - hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; - }; + # Use the flake's own source — rev and hash are tracked + # by flake.lock in the consuming repo, no manual updates needed + src = self.outPath; # Deps hashes are identical to upstream — mix.lock and yarn.lock # are unchanged in this fork. If they drift, nix build will