about summary refs log tree commit diff
path: root/lib/default.nix
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2022-10-24 13:22:42 +0200
committerGitHub <noreply@github.com>2022-10-24 13:22:42 +0200
commitbc4ce318bf6aa52031ad891675c573ce31308c8d (patch)
treefde3afb99befe8b7cfa46ae90cab9536bf19cdf6 /lib/default.nix
parentdf9da891637929d52a8a189ea3399c1ee555ef51 (diff)
parented71173841618bd4c69f40d07fb467ccabc5db0b (diff)
Merge pull request #173949 from jacoblambda/fix-toInt-zero-padding
lib: add strings.toIntBase10 to parse zero-padded strings
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 0c0e2d5e10217..8bb06954518b9 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -103,7 +103,7 @@ let
       getName getVersion
       nameFromURL enableFeature enableFeatureAs withFeature
       withFeatureAs fixedWidthString fixedWidthNumber isStorePath
-      toInt readPathsFromFile fileContents;
+      toInt toIntBase10 readPathsFromFile fileContents;
     inherit (self.stringsWithDeps) textClosureList textClosureMap
       noDepEntry fullDepEntry packEntry stringAfter;
     inherit (self.customisation) overrideDerivation makeOverridable