From 1058f242ea421a88eca823eebc1a69a09e2eb6e6 Mon Sep 17 00:00:00 2001 From: Simon Garrelou Date: Thu, 30 Nov 2023 15:05:33 +0100 Subject: add idafree --- pkgs/idafree/update.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 pkgs/idafree/update.sh (limited to 'pkgs/idafree/update.sh') diff --git a/pkgs/idafree/update.sh b/pkgs/idafree/update.sh new file mode 100755 index 0000000..cf4068e --- /dev/null +++ b/pkgs/idafree/update.sh @@ -0,0 +1,26 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p bash curl jq + +set -e + +urls=( + https://out7.hex-rays.com/files/idafree83_linux.run + https://out7.hex-rays.com/files/idafree83_mac.app.zip + https://out7.hex-rays.com/files/arm_idafree83_mac.app.zip +) + +archs=( + x86_64-linux + x86_64-darwin + aarch64-darwin +) + +hashes=() +for u in "${urls[@]}"; do + hash=$(nix-prefetch-url $u) + hashes=("${hashes[@]}" "$hash") +done + +for ((i = 0; i < ${#urls[@]}; i++)); do + echo '{"key":"'${archs[i]}'", "value":{"url":"'${urls[i]}'", "sha256":"'${hashes[i]}'"}}' +done | jq -s from_entries >pkgs/development/tools/analysis/ida-free/srcs.json -- cgit v1.2.3