Skip to content

Commit

Permalink
jbake: fix sandbox build (#46363)
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 6960a96)
  • Loading branch information
Ma27 authored and xeji committed Sep 8, 2018
1 parent 07cfc2f commit a05c49a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/tools/jbake/default.nix
Expand Up @@ -11,6 +11,8 @@ stdenv.mkDerivation rec {

buildInputs = [ makeWrapper jre ];

postPatch = "patchShebangs .";

installPhase = ''
mkdir -p $out
cp -vr * $out
Expand Down

0 comments on commit a05c49a

Please sign in to comment.