nix: patchShebangs tests

Without this, building a newer nix (2.15) on an older nix (2.3) with sandboxing
enabled will fail, which is problematic for doing a self-contained update on an
older system.
This commit is contained in:
Jan Malakhovski 2023-07-20 10:57:09 +00:00 committed by Artturin
parent 21b3094ca2
commit 917e133273

View file

@ -132,6 +132,10 @@ self = stdenv.mkDerivation {
(lib.optionalString (stdenv.hostPlatform.system == "armv5tel-linux" || stdenv.hostPlatform.system == "armv6l-linux") "-latomic")
];
postPatch = ''
patchShebangs --build tests
'';
preConfigure =
# Copy libboost_context so we don't get all of Boost in our closure.
# https://github.com/NixOS/nixpkgs/issues/45462