mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 22:57:42 +03:00
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 {
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user