tests/upgrade tests: patch emulators on NixOS

pull/644/head
Tomas Susanka 5 years ago committed by Pavol Rusnak
parent ddd9bee059
commit bfa5047012

@ -3,6 +3,10 @@ SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
cd "$(dirname "$0")"
# download all emulators without index files, without directories and only if not present
wget --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
chmod u+x emulators/trezor-emu-*
if [ -f /etc/NIXOS ]; then
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
fi

@ -1,2 +1,3 @@
*
!shell.nix
!.gitignore

@ -0,0 +1,10 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "trezor-patch-emulators";
buildInputs = [
autoPatchelfHook
SDL2
SDL2_image
];
}
Loading…
Cancel
Save