Commit 27aca32b authored by Guillaume Girol's avatar Guillaume Girol
Browse files

lnav: fix cross

the autoconf build system does not pass --target to cargo when compiling
the rust-based prql support into lnav, so cross compilation fails.
parent f8c4e5e7
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
  rustPlatform,
  rustc,
  libunistring,
  prqlSupport ? stdenv.hostPlatform == stdenv.buildPlatform,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -41,12 +42,15 @@ stdenv.mkDerivation (finalAttrs: {

  depsBuildBuild = [ buildPackages.stdenv.cc ];

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      autoconf
      automake
      zlib
      curl.dev
      re2c
    ]
    ++ lib.optionals prqlSupport [
      cargo
      rustPlatform.cargoSetupHook
      rustc