Signed-off-by: Markus Theil <theil.markus@gmail.com> Picked from PR https://github.com/NixOS/nixpkgs/pull/345998