This reverts commit 025881c23649b1c99930081ec9dc6b9fcd04afb4.
Temporary compatibility fix, continuation of https://github.com/NixOS/nixpkgs/pull/37860