From f2830f563635b3dc9f54ac393cf045b9f2a56c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 4 Mar 2010 14:44:31 +0000 Subject: [PATCH] Making e2fsprogs crossbuild. svn path=/nixpkgs/trunk/; revision=20379 --- pkgs/tools/filesystems/e2fsprogs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix index 0932eb1191f..d568fa75caa 100644 --- a/pkgs/tools/filesystems/e2fsprogs/default.nix +++ b/pkgs/tools/filesystems/e2fsprogs/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { buildInputs = [pkgconfig libuuid]; + crossAttrs = { + preConfigure = '' + export CC=$crossConfig-gcc + ''; + }; + # libuuid, libblkid, uuidd and fsck are in util-linux-ng (the "libuuid" dependency). configureFlags = "--enable-elf-shlibs --disable-libuuid --disable-libblkid --disable-uuidd --disable-fsck";