about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authormdarocha <git@mdarocha.pl>2023-12-04 20:24:09 +0100
committermdarocha <git@mdarocha.pl>2023-12-04 20:24:09 +0100
commit5b43e78193b35919df3cf845c06030b241eebf97 (patch)
treea2437ec1b7ddcfda4a83103ccdce6f8d8791eeb9 /pkgs/build-support
parentf0124cff665c80ff983b62f1d3454e9be604fd74 (diff)
buildDotnetModule: fix rare error when evaluation of version fails
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/dotnet/build-dotnet-module/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix
index f8ed3a38890c3..573b270ee408f 100644
--- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix
+++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix
@@ -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