fuse: Fix cross-compilation

This commit is contained in:
Shea Levy 2018-02-27 20:58:38 -05:00
parent c0e814a434
commit ed5bd8ad49
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -4,6 +4,7 @@
, fusePackages, utillinux, gettext
, autoconf, automake, libtool
, meson, ninja, pkgconfig
, autoreconfHook
}:
let
@ -18,6 +19,8 @@ in stdenv.mkDerivation rec {
sha256 = sha256Hash;
};
preAutoreconf = "touch config.rpath";
patches =
stdenv.lib.optional
(!isFuse3 && stdenv.isAarch64)
@ -30,8 +33,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = if isFuse3
then [ meson ninja pkgconfig ]
else [ autoconf automake libtool ];
buildInputs = stdenv.lib.optional (!isFuse3) gettext;
else [ autoreconfHook gettext ];
outputs = [ "out" ] ++ stdenv.lib.optional isFuse3 "common";