about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-06-10 22:21:25 +0300
committerAzat Bahawi <azat@bahawi.net>2023-06-10 22:21:25 +0300
commit2d4e9a5abfc08386250f42ba0f0c25ae63073d3e (patch)
tree9ebbc36a66679886df3f7ce673935a58f96f15c9 /lib
parent2023-06-02 (diff)
2023-06-10
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index de013c2..4251f7e 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -12,7 +12,7 @@ lib: _: rec {
   pow = base: exponent:
     assert (builtins.isInt base) && (builtins.isInt exponent);
     assert exponent > 0;
-      builtins.foldl' (x: _: x * base) 1 (builtins.genList _ exponent);
+      builtins.foldl' (x: _: x * base) 1 (builtins.genList (_: _) exponent);
 
   mapListToAttrs = f: xs:
     builtins.listToAttrs (map (name: {

Consider giving Nix/NixOS a try! <3