From 02906974ec37d5a85bcdfe023f50b9a86ff9a391 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 13 Jul 2022 01:30:11 +0200 Subject: [PATCH] polaris: fix Os error 24: 'Too many open files' in checkPhase I set the ulimit to 4096, the default used by Darwin since #173657 --- pkgs/servers/polaris/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/polaris/default.nix b/pkgs/servers/polaris/default.nix index fb9384ea0518..da53dc99252a 100644 --- a/pkgs/servers/polaris/default.nix +++ b/pkgs/servers/polaris/default.nix @@ -38,6 +38,11 @@ rustPlatform.buildRustPackage rec { cp -a docs/swagger $out/share/polaris-swagger ''; + preCheck = '' + # 'Err' value: Os { code: 24, kind: Uncategorized, message: "Too many open files" } + ulimit -n 4096 + ''; + passthru.updateScript = ./update.sh; meta = with lib; {