flake: use self.outPath instead of fetchFromGitea with hardcoded rev
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user