mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
buildDotnetModule: fix rare error when evaluation of version fails
This commit is contained in:
parent
f0124cff66
commit
5b43e78193
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue