Hydra (and by extension nixpkgs) doesn't allow import from derivation, which prevents building knot2 in these environments.
To reproduce:
nix eval .#knot-rs --option allow-import-from-derivation 0
I believe this is due to the use of runCommand in rust-src.nix. Possibly this can be replaced with just nixpkg's sources lib stuff.
Related: #436
Looks to be fixed by 17ec67196677ba3e252ff5e9864db4d67dc53a70