squafsTools: fix cross

This commit is contained in:
Artturin 2022-04-26 20:42:33 +03:00
parent 7ed2f7d1ba
commit 4f653a68d8

View File

@ -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 = ''