astro / deadnix

Scan Nix files for dead code
GNU General Public License v3.0
461 stars 15 forks source link

Having deadnix as a transitive input breaks your flake #17

Closed ursi closed 2 years ago

ursi commented 2 years ago

Introduced in: dd04c4bf35944590cb3e13e0aad6b79983103ccc

error: input 'nix-html/deadnix/fenix/nixpkgs' follows a non-existent input 'deadnix/nixpkgs'

It is a bug in nix that has been fixed in master, but there's no telling how long it'll be before that makes it into nix stable. Removing the follows fixes the issue.

astro commented 2 years ago

Thanks for the report.

Would it help to alternatively add nixpkgs as an explicit input? If so, which branch?

ursi commented 2 years ago

I definitely think it would be a good idea to add nixpkgs as an explicit input, but I just tested it and it does not fix the problem. Regarding what branch, nixpkgs-unstable should be fine. You can also go

nixpkgs.url = "github:NixOS/nixpkgs/f23965369e2d3123b370cc3ba03be835b1e2f5db";

if you'd like to keep it the same as it is now.

astro commented 2 years ago

Done