I use mach-nix in my flake-based system configuration; since mach-nix’s locked copy of pypi-deps-db is quite old, I update its pypi-deps-db input in my flake.nix:
inputs.mach-nix.url = "github:DavHau/mach-nix";
inputs.mach-nix.inputs.pypi-deps-db = {
type = "github";
owner = "DavHau";
repo = "pypi-deps-db";
};
I’ve noticed that whenever I home-manager switch
, this pypi-deps-db input gets updated automatically:
warning: updating lock file '/home/ash/src/config/flake.lock':
• Updated input 'mach-nix/pypi-deps-db':
'github:DavHau/pypi-deps-db/ed4433b11615fc5d84e349ad8f9f2f468165c876' (2022-08-11)
→ 'github:DavHau/pypi-deps-db/974e9b1cd1fec5d61db6e3ed21e65b2991fe693f' (2022-08-12)
This is different to all the other inputs to my flake, which I have to nix flake update
or nix flake lock --update-input
explicitly in order to update.
Why exactly is this happening? I’d rather not have to wait for a fresh pypi-deps-db to download every time I change something unrelated in my configuration…