mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 11:10:03 +00:00
hwinfo: fix cross compilation
This commit is contained in:
parent
b3c9ad0c6c
commit
d686ba03db
|
@ -78,12 +78,18 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
perl -pi -e 'undef $_ if /^C\s/..1' src/usb
|
||||
perl ./convert_hd src/pci
|
||||
perl ./convert_hd src/usb
|
||||
|
||||
make check_hd CC=$CC_FOR_BUILD
|
||||
popd
|
||||
|
||||
# build tools for build arch
|
||||
make -C src/ids CC=$CC_FOR_BUILD -j $NIX_BUILD_CORES check_hd
|
||||
make -C src/isdn/cdb CC=$CC_FOR_BUILD -j $NIX_BUILD_CORES isdn_cdb mk_isdnhwdb
|
||||
'';
|
||||
|
||||
makeFlags = [ "LIBDIR=/lib" ];
|
||||
makeFlags = [
|
||||
"LIBDIR=/lib"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"ARCH=${stdenv.hostPlatform.uname.processor}"
|
||||
];
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
passthru = {
|
||||
|
|
Loading…
Reference in a new issue