nixos-config/packages/lib/opensslLegacyProvider.nix

7 lines
173 B
Nix

{
openssl,
nodejs,
}:
if builtins.compareVersions nodejs.version "18" >= 0 && builtins.compareVersions openssl.version "3" >= 0
then "--openssl-legacy-provider"
else ""