electron: fix headers location

see https://www.electronjs.org/blog/s3-bucket-change for more info
This commit is contained in:
Pavol Rusnak 2022-07-05 21:09:22 +02:00
parent 874f8c3a81
commit d2184ac868
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
2 changed files with 4 additions and 5 deletions

View file

@ -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;
};

View file

@ -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: