mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
findutils: modernize and fix cross
This commit is contained in:
parent
54089620f5
commit
d710c2d943
1 changed files with 11 additions and 8 deletions
|
@ -1,4 +1,9 @@
|
|||
{ stdenv, fetchurl, coreutils }:
|
||||
{ stdenv, fetchurl
|
||||
, coreutils
|
||||
, buildPlatform, hostPlatform
|
||||
}:
|
||||
|
||||
let inherit (stdenv.lib) optionals; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "findutils-4.6.0";
|
||||
|
@ -10,20 +15,18 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./memory-leak.patch ./no-install-statedir.patch ];
|
||||
|
||||
buildInputs = [ coreutils ]; # bin/updatedb script needs to call sort
|
||||
buildInputs = optionals (hostPlatform == buildPlatform) [ coreutils ]; # bin/updatedb script needs to call sort
|
||||
|
||||
# Since glibc-2.25 the i686 tests hang reliably right after test-sleep.
|
||||
doCheck = !stdenv.isDarwin && (stdenv.system != "i686-linux");
|
||||
doCheck
|
||||
= !hostPlatform.isDarwin
|
||||
&& !(hostPlatform.libc == "glibc" && hostPlatform.isi686)
|
||||
&& hostPlatform == buildPlatform;
|
||||
|
||||
outputs = [ "out" "info" ];
|
||||
|
||||
configureFlags = [ "--localstatedir=/var/cache" ];
|
||||
|
||||
crossAttrs = {
|
||||
# Fix the 'buildInputs = [ coreutils ]' above - that adds the cross coreutils to PATH :(
|
||||
propagatedBuildInputs = [ ];
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue