aboutsummaryrefslogtreecommitdiff
path: root/pkgs/idafree/update.sh
diff options
context:
space:
mode:
authorSimon Garrelou <simon.garrelou@airbus.com>2023-11-30 15:05:33 +0100
committerSimon Garrelou <simon.garrelou@airbus.com>2023-11-30 15:05:33 +0100
commit1058f242ea421a88eca823eebc1a69a09e2eb6e6 (patch)
tree3f9745730392a3558d67808c42b2bbfcf24a2168 /pkgs/idafree/update.sh
parent88935f52da7501632e719459c8e39d65eb6c53aa (diff)
downloadnixpkgs-1058f242ea421a88eca823eebc1a69a09e2eb6e6.tar.gz
nixpkgs-1058f242ea421a88eca823eebc1a69a09e2eb6e6.zip
add idafree
Diffstat (limited to 'pkgs/idafree/update.sh')
-rwxr-xr-xpkgs/idafree/update.sh26
1 files changed, 26 insertions, 0 deletions
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 @@
1#! /usr/bin/env nix-shell
2#! nix-shell -i bash -p bash curl jq
3
4set -e
5
6urls=(
7 https://out7.hex-rays.com/files/idafree83_linux.run
8 https://out7.hex-rays.com/files/idafree83_mac.app.zip
9 https://out7.hex-rays.com/files/arm_idafree83_mac.app.zip
10)
11
12archs=(
13 x86_64-linux
14 x86_64-darwin
15 aarch64-darwin
16)
17
18hashes=()
19for u in "${urls[@]}"; do
20 hash=$(nix-prefetch-url $u)
21 hashes=("${hashes[@]}" "$hash")
22done
23
24for ((i = 0; i < ${#urls[@]}; i++)); do
25 echo '{"key":"'${archs[i]}'", "value":{"url":"'${urls[i]}'", "sha256":"'${hashes[i]}'"}}'
26done | jq -s from_entries >pkgs/development/tools/analysis/ida-free/srcs.json