nixos-config/modules/backport.nix

29 lines
600 B
Nix
Raw Normal View History

2024-09-08 22:41:36 +00:00
let
2024-11-08 03:59:57 +00:00
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";
};
2024-09-08 22:41:36 +00:00
};
2024-11-08 03:59:57 +00:00
}
);
2024-09-08 22:41:36 +00:00
in
{
nixpkgs.overlays = [
brave
];
}