mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
4d9d82632f
The Brave package often seems to get very outdated. This is bad for a browser, where vulnerabilities are high impact. This change adds an update script, so that r-ryantm will suggest updates. We find the latest version using their Debian package database (since we are using the Debian package anyway).
6 lines
279 B
Bash
Executable file
6 lines
279 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p curl gnused common-updater-scripts
|
|
|
|
version="$(curl -sL https://brave-browser-apt-release.s3.brave.com/dists/stable/main/binary-amd64/Packages | sed -r -n 's/^Version: (.*)/\1/p' | head -n1)"
|
|
update-source-version brave "$version"
|