e2fsprogs: Enable cross-compilation
This commit is contained in:
parent
f4348cc5cb
commit
b62864adf4
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, libuuid, gettext, texinfo }:
|
{ stdenv, buildPackages, fetchurl, pkgconfig, libuuid, gettext, texinfo }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "e2fsprogs-1.43.8";
|
name = "e2fsprogs-1.43.8";
|
||||||
|
@ -10,15 +10,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" "info" ];
|
outputs = [ "bin" "dev" "out" "man" "info" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig texinfo ];
|
nativeBuildInputs = [ pkgconfig texinfo buildPackages.stdenv.cc ];
|
||||||
buildInputs = [ libuuid ] ++ stdenv.lib.optional (!stdenv.isLinux) gettext;
|
buildInputs = [ libuuid ] ++ stdenv.lib.optional (!stdenv.isLinux) gettext;
|
||||||
|
|
||||||
crossAttrs = {
|
|
||||||
preConfigure = ''
|
|
||||||
export CC=$crossConfig-gcc
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
if stdenv.isLinux then [
|
if stdenv.isLinux then [
|
||||||
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
||||||
|
|
Loading…
Reference in New Issue