Closes https://github.com/NixOS/nixpkgs/pull/81107 (cherry picked from commit 1fc860b9ede1dfa95a7eefdc34e890e822006d4f)