A simple package for patching repos and tracking upstream.
Initializing a repo (sets up / adds to flake.nix)
npx patch-repo initUpdating a repo (reads flake.nix, updates flake.nix hash, clones repo)
npx patch-repo update
npx patch-repo update <commit-hash>Patching a repo (reads flake.nix, clones repo if not exists, patches it, skips dirty, warns if commit is not same as in config)
npx patch-repo hookForce patch a repo (reads flake.nix, clones repo, patches it, overwrites dirty) If shell is interactive & dir is dirty it will ask for confirmation.
npx patch-repo pullInspired by patch-package & openlv#92.