From 4f653a68d8b676931fabeab4b8eec2dcb9c1e5af Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 26 Apr 2022 20:42:33 +0300 Subject: [PATCH] squafsTools: fix cross --- pkgs/tools/filesystems/squashfs/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/squashfs/default.nix b/pkgs/tools/filesystems/squashfs/default.nix index 0b2d6ae9cd65..3be3865ccd07 100644 --- a/pkgs/tools/filesystems/squashfs/default.nix +++ b/pkgs/tools/filesystems/squashfs/default.nix @@ -35,7 +35,9 @@ stdenv.mkDerivation rec { ] ++ lib.optional stdenv.isDarwin ./darwin.patch; strictDeps = true; - nativeBuildInputs = [ help2man which ]; + nativeBuildInputs = [ which ] + # when cross-compiling help2man cannot run the cross-compiled binary + ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ help2man ]; buildInputs = [ zlib xz zstd lz4 lzo ]; preBuild = ''