Skip to content

Commit

Permalink
release.nix: Make sure .sh scripts are executable before wrapping.
Browse files Browse the repository at this point in the history
It seems as though the `./Setup sdist` now unsets the executable bit.
  • Loading branch information
jsoo1 committed Nov 8, 2023
1 parent fe3f50f commit ec876ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ let
(oldDerivation.patches or [ ]) ++ [ ./tests/tests.patch ];

postPatch = (oldDerivation.postPatch or "") + ''
for bin in tests/*.sh; do
chmod a+x "$bin"
done
patchShebangs tests
substituteInPlace tests/simple-client.sh \
--replace @makeWrapper@ ${pkgsNew.makeWrapper} \
Expand Down

0 comments on commit ec876ac

Please sign in to comment.