about summary refs log tree commit diff
path: root/pkgs/by-name/op/ophcrack/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/op/ophcrack/package.nix')
-rw-r--r--pkgs/by-name/op/ophcrack/package.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/by-name/op/ophcrack/package.nix b/pkgs/by-name/op/ophcrack/package.nix
index 13709ad9973a..bee8b7dd76f6 100644
--- a/pkgs/by-name/op/ophcrack/package.nix
+++ b/pkgs/by-name/op/ophcrack/package.nix
@@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkg-config ] ++ lib.optional enableGui libsForQt5.wrapQtAppsHook;
   buildInputs =
     [ openssl ]
-    ++ (if enableGui then [ libsForQt5.qtcharts ] else [ expat ]) ++ lib.optional stdenv.isDarwin expat;
+    ++ (if enableGui then [ libsForQt5.qtcharts ] else [ expat ])
+    ++ lib.optional stdenv.hostPlatform.isDarwin expat;
 
   configureFlags =
     [ "--with-libssl" ]
@@ -47,7 +48,7 @@ stdenv.mkDerivation rec {
         [ "--disable-gui" ]
     );
 
-  installPhase = lib.optional stdenv.isDarwin ''
+  installPhase = lib.optional stdenv.hostPlatform.isDarwin ''
     mkdir -p $out/bin
     cp -R src/ophcrack $out/bin
   '';