From d2f268745a44dfd0ff23b5a00a75c1e13279bc3d Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 22 Mar 2022 18:59:05 +0100 Subject: treewide: autoPatchelfHook only on Linux --- pkgs/tools/archivers/rar/default.nix | 3 ++- pkgs/tools/games/ajour/default.nix | 4 +++- pkgs/tools/misc/archi/default.nix | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'pkgs/tools') 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 -- cgit 1.4.1