depot/third_party/nixpkgs/pkgs/by-name/br/brave/package.nix

39 lines
1.3 KiB
Nix

# Expression generated by update.sh; do not edit it by hand!
{ stdenv, callPackage, ... }@args:
let
pname = "brave";
version = "1.73.97";
allArchives = {
aarch64-linux = {
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_arm64.deb";
hash = "sha256-plEH7YS6cPoC6fRiCPNH7TYaiqPpXofkSvVUvpw4cok=";
};
x86_64-linux = {
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
hash = "sha256-as+mBaYd01RxZh/3t9jAMOubYqezyUy6f+kAMEp9pyU=";
};
aarch64-darwin = {
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-v${version}-darwin-arm64.zip";
hash = "sha256-29FlepNisnR8O41yIrI9ksthlE9oCbpXQSan2fnXKkI=";
};
x86_64-darwin = {
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-v${version}-darwin-x64.zip";
hash = "sha256-EVyZu0Omm2sf6p0Dz+ddp3GE9LFTLq8apEs5x6ASM9g=";
};
};
archive =
if builtins.hasAttr stdenv.system allArchives then
allArchives.${stdenv.system}
else
throw "Unsupported platform.";
in
callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ]) (
archive
// {
inherit pname version;
}
)