summary refs log tree commit diff
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2022-07-05 21:09:22 +0200
committerPavol Rusnak <pavol@rusnak.io>2022-07-06 10:36:38 +0200
commitd2184ac8686da08f294b875e9a0ec0121c3a8b1d (patch)
treef6e8447587005de238808bb584c926b18e0fd82d
parent874f8c3a81a7b805bb3cd1635ecffbf5a07ab9d3 (diff)
downloadnixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar.gz
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar.bz2
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar.lz
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar.xz
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.tar.zst
nixpkgs-d2184ac8686da08f294b875e9a0ec0121c3a8b1d.zip
electron: fix headers location
see https://www.electronjs.org/blog/s3-bucket-change for more info
-rw-r--r--pkgs/development/tools/electron/generic.nix2
-rwxr-xr-xpkgs/development/tools/electron/print-hashes.sh7
2 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix
index 0016e82c47c..06440a80a4a 100644
--- a/pkgs/development/tools/electron/generic.nix
+++ b/pkgs/development/tools/electron/generic.nix
@@ -39,7 +39,7 @@ let
   };
 
   headersFetcher = vers: hash: fetchurl {
-    url = "https://atom.io/download/electron/v${vers}/node-v${vers}-headers.tar.gz";
+    url = "https://artifacts.electronjs.org/headers/dist/v${vers}/node-v${vers}-headers.tar.gz";
     sha256 = hash;
   };
 
diff --git a/pkgs/development/tools/electron/print-hashes.sh b/pkgs/development/tools/electron/print-hashes.sh
index 48c8f0412e1..e43f1f922a9 100755
--- a/pkgs/development/tools/electron/print-hashes.sh
+++ b/pkgs/development/tools/electron/print-hashes.sh
@@ -7,8 +7,7 @@ if [[ $# -lt 1 ]]; then
     exit 1
 fi
 
-
-VERSION=$1
+VERSION="$1"
 
 declare -A SYSTEMS HASHES
 SYSTEMS=(
@@ -20,8 +19,8 @@ SYSTEMS=(
     [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)"
-headers="$(nix-prefetch-url "https://atom.io/download/electron/v${VERSION}/node-v${VERSION}-headers.tar.gz")"
+hashfile="$(nix-prefetch-url --print-path "https://github.com/electron/electron/releases/download/v${VERSION}/SHASUMS256.txt" | tail -n1)"
+headers="$(nix-prefetch-url "https://artifacts.electronjs.org/headers/dist/v${VERSION}/node-v${VERSION}-headers.tar.gz")"
 
 # Entry similar to the following goes in default.nix: