Skip to content

Commit

Permalink
ninja: patch issues on 32-bit platforms
Browse files Browse the repository at this point in the history
Fixes #68241
> Value too large for defined data type
https://hydra.nixos.org/build/213266252
  • Loading branch information
vcunat committed Mar 21, 2023
1 parent bb48723 commit 9434136
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/tools/build-managers/ninja/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ stdenv.mkDerivation rec {
libxslt.bin
];

patches = lib.optionals stdenv.is32bit [
# Otherwise ninja may fail on some files in a larger FS.
(fetchpatch {
name = "stat64.patch";
url = "https://github.com/ninja-build/ninja/commit/7bba11ae704efc84cac5fde5e9be53f653f237d1.diff";
hash = "sha256-tINS57xLh1lwnYFWCQs5OudfgtIShaOh5zbmv7w5BnQ=";
})
];

postPatch = ''
# write rebuild args to file after bootstrap
substituteInPlace configure.py --replace "subprocess.check_call(rebuild_args)" "open('rebuild_args','w').write(rebuild_args[0])"
Expand Down

0 comments on commit 9434136

Please sign in to comment.