edolstra / flake-compat

MIT License
241 stars 72 forks source link

README: fix node name look-up #61

Open Gerg-L opened 11 months ago

Gerg-L commented 11 months ago

Using the example in the README will not use the correct flake-compat url/hash if another input with a name before "flake-compat" in ASCII ordering has a "flake-compat" input

I made a minimal reproducible example repo

Tested via:

current version:

nix-shell -p '(import (builtins.fetchTarball "https://github.com/Gerg-L/flake-compat-example/archive/98c5dae31e253ee2a4eb5e19867d43f790e95425.tar.gz")).packages.${builtins.currentSystem}.default'

after this PR:

nix-shell -p '(import (builtins.fetchTarball "https://github.com/Gerg-L/flake-compat-example/archive/6023171dd1df408b880007e09716227beab8016a.tar.gz")).packages.${builtins.currentSystem}.default'