diff --git a/default.nix b/default.nix index c2f023e0..0230222e 100644 --- a/default.nix +++ b/default.nix @@ -44,11 +44,15 @@ let app = bakingApp: pkgs.stdenv.mkDerivation { name = "ledger-app-tezos-nano-${bolos.name}-${if bakingApp then "baking" else "wallet"}"; inherit src; + prePatch = '' + patchShebangs tools/gen-delegates.sh + ''; postConfigure = '' PATH="$BOLOS_ENV/clang-arm-fropi/bin:$PATH" ''; nativeBuildInputs = [ (pkgs.python3.withPackages (ps: [ps.pillow ps.ledgerblue])) + pkgs.jq ]; TARGET = bolos.target; GIT_DESCRIBE = gitDescribe; diff --git a/tools/gen-delegates.sh b/tools/gen-delegates.sh index 6aa96dd2..6eb16ca2 100755 --- a/tools/gen-delegates.sh +++ b/tools/gen-delegates.sh @@ -1,7 +1,6 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i bash -p jq +#! /usr/bin/env sh -root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && git rev-parse --show-toplevel)" +root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" registry_json=$root/tools/BakersRegistryCoreUnfilteredData.json if [ $# -eq 1 ]; then