From 3c2beb0fb89516aa3da47e66f023086501c3d4b0 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 16 Mar 2021 15:48:32 -0700 Subject: [PATCH] build: simply patch application lmdb nix overlay --- nix/overlays/native.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/nix/overlays/native.nix b/nix/overlays/native.nix index 20d6b1ff9b..f7f60e0412 100644 --- a/nix/overlays/native.nix +++ b/nix/overlays/native.nix @@ -28,12 +28,8 @@ in { lmdb = prev.lmdb.overrideAttrs (attrs: { patches = - if builtins.currentSystem != "x86_64-darwin" - then - attrs.patches - else - optionalList attrs.patches ++ [ - ../pkgs/lmdb/darwin-fsync.patch - ]; + optionalList attrs.patches ++ prev.lib.optional prev.stdenv.isDarwin [ + ../pkgs/lmdb/darwin-fsync.patch + ]; }); }