buildDotnetModule: fix rare error when evaluation of version fails

This commit is contained in:
mdarocha 2023-12-04 20:24:09 +01:00
parent f0124cff66
commit 5b43e78193

View file

@ -165,7 +165,7 @@ stdenvNoCC.mkDerivation (args // {
components = lib.pipe args.version [
lib.splitVersion
(lib.filter (x: (lib.strings.match "[0-9]+" x) != null))
(lib.filter (x: (lib.toInt x) < 65535)) # one version component in dotnet has to fit in 16 bits
(lib.filter (x: (lib.toIntBase10 x) < 65535)) # one version component in dotnet has to fit in 16 bits
];
in if (lib.length components) == 0
then null