diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-12-10 01:37:34 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-01-24 09:33:34 -0600 |
commit | b62864adf47d06897caff6f9e7b485febc814257 (patch) | |
tree | 1d3c40feadd4f19cdd844cecc34ad14c34926f52 /pkgs/tools/filesystems/e2fsprogs | |
parent | f4348cc5cbb598d9779a3660e2c2f232ed1278b2 (diff) |
e2fsprogs: Enable cross-compilation
Diffstat (limited to 'pkgs/tools/filesystems/e2fsprogs')
-rw-r--r-- | pkgs/tools/filesystems/e2fsprogs/default.nix | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pkgs/tools/filesystems/e2fsprogs/default.nix b/pkgs/tools/filesystems/e2fsprogs/default.nix index e6a83e32632c3..a27eb5094dbaf 100644 --- a/pkgs/tools/filesystems/e2fsprogs/default.nix +++ b/pkgs/tools/filesystems/e2fsprogs/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, libuuid, gettext, texinfo }: +{ stdenv, buildPackages, fetchurl, pkgconfig, libuuid, gettext, texinfo }: stdenv.mkDerivation rec { name = "e2fsprogs-1.43.8"; @@ -10,15 +10,9 @@ stdenv.mkDerivation rec { outputs = [ "bin" "dev" "out" "man" "info" ]; - nativeBuildInputs = [ pkgconfig texinfo ]; + nativeBuildInputs = [ pkgconfig texinfo buildPackages.stdenv.cc ]; buildInputs = [ libuuid ] ++ stdenv.lib.optional (!stdenv.isLinux) gettext; - crossAttrs = { - preConfigure = '' - export CC=$crossConfig-gcc - ''; - }; - configureFlags = if stdenv.isLinux then [ "--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks" |