summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2022-03-22 18:59:05 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2022-03-23 21:37:39 +0100
commitd2f268745a44dfd0ff23b5a00a75c1e13279bc3d (patch)
tree196dd1900cc1b4aa1a8ca4c822d9b07668c38ade /pkgs/tools
parent48034046bf6271d44f7dea4c1ba97196b3b105a7 (diff)
treewide: autoPatchelfHook only on Linux
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/archivers/rar/default.nix3
-rw-r--r--pkgs/tools/games/ajour/default.nix4
-rw-r--r--pkgs/tools/misc/archi/default.nix3
3 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/archivers/rar/default.nix b/pkgs/tools/archivers/rar/default.nix
index a359beb21adf5..5a0d7e51e727b 100644
--- a/pkgs/tools/archivers/rar/default.nix
+++ b/pkgs/tools/archivers/rar/default.nix
@@ -32,7 +32,8 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ stdenv.cc.cc.lib ];
 
-  nativeBuildInputs = [ autoPatchelfHook installShellFiles ];
+  nativeBuildInputs = [ installShellFiles ]
+    ++ lib.optional stdenv.isLinux autoPatchelfHook;
 
   installPhase = ''
     runHook preInstall
diff --git a/pkgs/tools/games/ajour/default.nix b/pkgs/tools/games/ajour/default.nix
index 49fef3edca9f4..11df34256d43e 100644
--- a/pkgs/tools/games/ajour/default.nix
+++ b/pkgs/tools/games/ajour/default.nix
@@ -1,4 +1,5 @@
-{ lib
+{ stdenv
+, lib
 , fetchFromGitHub
 , rustPlatform
 , autoPatchelfHook
@@ -79,6 +80,7 @@ in rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/casperstorm/ajour";
     changelog = "https://github.com/casperstorm/ajour/blob/master/CHANGELOG.md";
     license = licenses.mit;
+    broken = stdenv.isDarwin;
     maintainers = with maintainers; [ hexa ];
   };
 }
diff --git a/pkgs/tools/misc/archi/default.nix b/pkgs/tools/misc/archi/default.nix
index d0beb7d40d75f..e6f16b93f7d2f 100644
--- a/pkgs/tools/misc/archi/default.nix
+++ b/pkgs/tools/misc/archi/default.nix
@@ -30,9 +30,8 @@ stdenv.mkDerivation rec {
   ];
 
   nativeBuildInputs = [
-    autoPatchelfHook
     makeWrapper
-  ];
+  ] ++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
 
   installPhase =
     if stdenv.hostPlatform.system == "x86_64-linux" then