Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions tools/gen-delegates.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down