about summary refs log tree commit diff
path: root/pkgs/tools/misc/diffoscope/default.nix
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2024-01-15 13:29:09 -0800
committerSergei Trofimovich <slyich@gmail.com>2024-02-29 21:45:23 +0000
commitc862d123f907fbe09806b46bfba00b9f49d99f0f (patch)
tree232d222209110ffd50065ff734136f5938be7bfd /pkgs/tools/misc/diffoscope/default.nix
parent04e966cb375db542a24c1a2d89b88cb0463926df (diff)
diffoscope: fix on aarch64-darwin
This was comparing stdenv.hostPlatform (an attr set) to a string. This
comparison always returned not-equal, which resulted in trying to
evaluate the broken gnumeric on macOS. This change fixes that to compare
the "system" string as was intended originally.

(cherry picked from commit 5d238d0d637c69c3a6fe77df87124c69192bdad3)
Diffstat (limited to 'pkgs/tools/misc/diffoscope/default.nix')
-rw-r--r--pkgs/tools/misc/diffoscope/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix
index 4636266e02795..512ff2872c082 100644
--- a/pkgs/tools/misc/diffoscope/default.nix
+++ b/pkgs/tools/misc/diffoscope/default.nix
@@ -219,7 +219,7 @@ python3.pkgs.buildPythonApplication rec {
     # oggvideotools is broken on Darwin, please put it back when it will be fixed?
     ++ lib.optionals stdenv.isLinux [ oggvideotools ]
     # This doesn't work on aarch64-darwin
-    ++ lib.optionals (stdenv.hostPlatform != "aarch64-darwin") [ gnumeric ]
+    ++ lib.optionals (stdenv.hostPlatform.system != "aarch64-darwin") [ gnumeric ]
   ));
 
   nativeCheckInputs = with python3.pkgs; [