summary refs log tree commit diff
path: root/pkgs/development/tools/rust
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-11-19 14:42:53 +0200
committerGitHub <noreply@github.com>2023-11-19 14:42:53 +0200
commit62724e4c453e1ea314652f53f40a745ef10712a0 (patch)
tree5e81a3394c1b943d2d9b4f331a078724be2421b5 /pkgs/development/tools/rust
parent55ffaa548c68adb3e4c86f51f3a4b97eb646d259 (diff)
parentdf4fef87c5d045400132c7e2ac815c7de73d813c (diff)
Merge pull request #267265 from boltzmannrain/cargo_raze_darwin_tests
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r--pkgs/development/tools/rust/cargo-raze/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-raze/default.nix b/pkgs/development/tools/rust/cargo-raze/default.nix
index 295ac413fe3e7..b87d9d4570b6c 100644
--- a/pkgs/development/tools/rust/cargo-raze/default.nix
+++ b/pkgs/development/tools/rust/cargo-raze/default.nix
@@ -31,6 +31,12 @@ rustPlatform.buildRustPackage rec {
   ]
   ++ lib.optional stdenv.isDarwin Security;
 
+  preCheck = lib.optionalString stdenv.isDarwin ''
+    # Darwin issue: Os { code: 24, kind: Uncategorized, message: "Too many open files" }
+    # https://github.com/google/cargo-raze/issues/544
+    ulimit -n 1024
+  '';
+
   __darwinAllowLocalNetworking = true;
 
   meta = with lib; {