summaryrefslogtreecommitdiff
path: root/Biz/Bild
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-01-08 23:01:47 -0500
committerBen Sima <ben@bsima.me>2021-01-08 23:06:47 -0500
commit3df9ae26ee786f4af6ba6d18bfa760fa9aac1e77 (patch)
tree59c5a624d990575e4e622df2e3aa9416b136c5db /Biz/Bild
parente4e801a8020550bfdb6bde723f1ade0e591e10d8 (diff)
Fix stack overflow in nix
There is a bug in nixpkgs where lib.strings.splitString overflows on long lines. builtins.split performs better, but needs the extra filter for some reason. https://github.com/NixOS/nixpkgs/issues/68951
Diffstat (limited to 'Biz/Bild')
-rw-r--r--Biz/Bild/Rules.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/Biz/Bild/Rules.nix b/Biz/Bild/Rules.nix
index fcdf025..51fcb14 100644
--- a/Biz/Bild/Rules.nix
+++ b/Biz/Bild/Rules.nix
@@ -10,7 +10,10 @@ let
root = builtins.getEnv "BIZ_ROOT";
# general functions to put in a lib
- lines = s: lib.strings.splitString "\n" s;
+ lines = s: lib.pipe s [
+ (builtins.split "\n")
+ (builtins.filter (x: builtins.typeOf x == "string"))
+ ];
removeNull = ls: builtins.filter (x: x != null) ls;
selectAttrs = deps: packageSet: