about summary refs log tree commit diff
path: root/pkgs/development/libraries/libbutl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libbutl/default.nix')
-rw-r--r--pkgs/development/libraries/libbutl/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libbutl/default.nix b/pkgs/development/libraries/libbutl/default.nix
index 65fe845ff25a..aaf78cec08dc 100644
--- a/pkgs/development/libraries/libbutl/default.nix
+++ b/pkgs/development/libraries/libbutl/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [
     build2
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     DarwinTools
   ];
 
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
   # but especially important when bootstrapping
   disallowedReferences = [ build2 ];
 
-  postPatch = lib.optionalString stdenv.isLinux ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
     substituteInPlace libbutl/uuid-linux.cxx \
       --replace '"libuuid.so' '"${lib.getLib libuuid}/lib/libuuid.so'
   '';