nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# Expression generated by update.sh; do not edit it by hand!
2{ stdenv, callPackage, ... }@args:
3
4let
5 pname = "brave";
6 version = "1.80.125";
7
8 allArchives = {
9 aarch64-linux = {
10 url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_arm64.deb";
11 hash = "sha256-FfD0HNcA/OgDOgDvqTdn+C0PlazX/VuBh6xxvy1+4JM=";
12 };
13 x86_64-linux = {
14 url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
15 hash = "sha256-ih1XSJgDGj2gAwkyUJiOyKruvpouco+iWyOEyz67M2k=";
16 };
17 aarch64-darwin = {
18 url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-v${version}-darwin-arm64.zip";
19 hash = "sha256-GjxeUJgQ+8Mq6cY6yA4fMFKM0LH59VJYOwRe1d0zI3c=";
20 };
21 x86_64-darwin = {
22 url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-v${version}-darwin-x64.zip";
23 hash = "sha256-NA5HRQtBh0oEy2K17iYocoDMJP5Bdg2d/SGpuVwE1nA=";
24 };
25 };
26
27 archive =
28 if builtins.hasAttr stdenv.system allArchives then
29 allArchives.${stdenv.system}
30 else
31 throw "Unsupported platform.";
32
33in
34callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ]) (
35 archive
36 // {
37 inherit pname version;
38 }
39)