mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add brave backport script
This commit is contained in:
parent
b0143c1141
commit
7b58e3531a
1 changed files with 28 additions and 0 deletions
28
modules/backport.nix
Normal file
28
modules/backport.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
let
|
||||||
|
|
||||||
|
brave = (final: prev: {
|
||||||
|
brave =
|
||||||
|
let
|
||||||
|
# updates to the newer version before it hits the channels
|
||||||
|
version = "1";
|
||||||
|
hash = "";
|
||||||
|
in
|
||||||
|
if
|
||||||
|
prev.lib.versionAtLeast prev.brave.version version
|
||||||
|
then
|
||||||
|
prev.brave
|
||||||
|
else
|
||||||
|
prev.brave.overrideAttrs {
|
||||||
|
src = prev.fetchurl {
|
||||||
|
inherit hash;
|
||||||
|
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
brave
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue