about summary refs log tree commit diff
path: root/pkgs/development/libraries/libmemcached/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libmemcached/default.nix')
-rw-r--r--pkgs/development/libraries/libmemcached/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libmemcached/default.nix b/pkgs/development/libraries/libmemcached/default.nix
index 07fe854c777c3..053cd91be2d98 100644
--- a/pkgs/development/libraries/libmemcached/default.nix
+++ b/pkgs/development/libraries/libmemcached/default.nix
@@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
   # https://bugs.launchpad.net/libmemcached/+bug/1281907
   # Fix building on macOS (patch from Homebrew)
   # https://bugs.launchpad.net/libmemcached/+bug/1245562
-  patches = lib.optional stdenv.isLinux ./libmemcached-fix-linking-with-libpthread.patch
-    ++ lib.optional stdenv.isDarwin (fetchpatch {
+  patches = lib.optional stdenv.hostPlatform.isLinux ./libmemcached-fix-linking-with-libpthread.patch
+    ++ lib.optional stdenv.hostPlatform.isDarwin (fetchpatch {
       url = "https://raw.githubusercontent.com/Homebrew/homebrew/bfd4a0a4626b61c2511fdf573bcbbc6bbe86340e/Library/Formula/libmemcached.rb";
       sha256 = "1gjf3vd7hiyzxjvlg2zfc3y2j0lyr6nhbws4xb5dmin3csyp8qb8";
     })