jbake: fix sandbox build (#46363)

See https://hydra.nixos.org/build/80999410

Without a sandbox the `checkPhase` breaks with the following error:

```
/nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux/setup: bin/jbake: /usr/bin/env: bad interpreter: No such file or directory
jbake did not return correct version
```

Running `patchShebangs` before fixes the issue.

Addresses #45960
This commit is contained in:
Maximilian Bosch 2018-09-08 15:20:39 +02:00 committed by xeji
parent ca7391daf2
commit 6960a96a0c

View File

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper jre ];
postPatch = "patchShebangs .";
installPhase = ''
mkdir -p $out
cp -vr * $out