summary refs log tree commit diff
path: root/pkgs/development/tools/electron/print-hashes.sh
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2021-05-20 10:08:26 +0900
committer(cdep)illabout <cdep.illabout@gmail.com>2021-05-20 10:08:26 +0900
commit408d7aabb477f3f9d3ed0441a00833e2c1b72ca8 (patch)
tree46c04d61df249c86927fdede4ec1a26f01f5bffb /pkgs/development/tools/electron/print-hashes.sh
parent0eb2dc5d7b987499e75cdea61693bb91358c63e6 (diff)
parent7fe78d4f9efc88e5c6a4b9591bd8b41fee656df6 (diff)
downloadnixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar.gz
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar.bz2
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar.lz
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar.xz
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.tar.zst
nixpkgs-408d7aabb477f3f9d3ed0441a00833e2c1b72ca8.zip
Merge remote-tracking branch 'origin/master' into haskell-updates
Diffstat (limited to 'pkgs/development/tools/electron/print-hashes.sh')
-rwxr-xr-xpkgs/development/tools/electron/print-hashes.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/tools/electron/print-hashes.sh b/pkgs/development/tools/electron/print-hashes.sh
index d6c5d94ec41..48c8f0412e1 100755
--- a/pkgs/development/tools/electron/print-hashes.sh
+++ b/pkgs/development/tools/electron/print-hashes.sh
@@ -17,6 +17,7 @@ SYSTEMS=(
     [armv7l-linux]=linux-armv7l
     [aarch64-linux]=linux-arm64
     [x86_64-darwin]=darwin-x64
+    [aarch64-darwin]=darwin-arm64
 )
 
 hashfile="$(nix-prefetch-url --print-path "https://github.com/electron/electron/releases/download/v${VERSION}/SHASUMS256.txt" 2>/dev/null | tail -n1)"
@@ -27,8 +28,10 @@ headers="$(nix-prefetch-url "https://atom.io/download/electron/v${VERSION}/node-
 echo "  electron_${VERSION%%.*} = mkElectron \"${VERSION}\" {"
 
 for S in "${!SYSTEMS[@]}"; do
-  hash="$(grep " *electron-v${VERSION}-${SYSTEMS[$S]}.zip$" "$hashfile"|cut -f1 -d' ')"
-  echo "    $S = \"$hash\";"
+  hash="$(grep " *electron-v${VERSION}-${SYSTEMS[$S]}.zip$" "$hashfile"|cut -f1 -d' ' || :)"
+  if [[ -n $hash ]]; then
+    echo "    $S = \"$hash\";"
+  fi
 done
 
 echo "    headers = \"$headers\";"