Am trying to install freemedium. I first tried using fetchFromGithub . The repo doesnt have a packed crx file so I manually loaded it and packed it.
Its building without any error and a file is created at .config/BraveSoftware/Brave-Browser/External Extensions
but the extension is not available
{"external_crx":"/nix/store/wvk62c4myk84q3vd7y6ygpijmqdjbr76-bobjpmbefncnijkhhepdacmjebpofeej.crx","external_version":"2.1"}
This is how am currently trying to do it. I
programs.brave = {
enable = true;
extensions = [
"dbepggeogbaibhgnhhndojpepiihcmeb" # vimium
"kapjaoifikajdcdehfdlmojlepfpkpoe" # squarex
"gppongmhjkpfnbhagpmjfkannfbllamg" # wappalyzer
# {
# id = "bobjpmbefncnijkhhepdacmjebpofeej"; # free-medium
# version = "2.1";
#
# crxPath = let
# src = pkgs.fetchFromGitHub {
# owner = "fferrin";
# repo = "free-medium";
# rev = "v2.1";
# sha256 = "sha256-vGtgL7Wv0Z972gniz1x+yjxDQj0ywpMB8RlYxoGtVfw=";
# };
# in "${src}/extension";
# }
# {
# id = "bobjpmbefncnijkhhepdacmjebpofeej"; # free-medium
# version = "2.1";
#
# crxPath = let
# src = pkgs.fetchurl {
# url = "https://github.com/sammhansen/free-medium/releases/download/v2.1/extension.crx";
# sha256 = "sha256-tkWUjBdPw5kyuKpMSPHDT08RB/RK8VGAhlKK35yey0M=";
# };
# in
# src;
# }
{
id = "bobjpmbefncnijkhhepdacmjebpofeej"; # free-medium
version = "2.1";
# crxPath = "/home/tamara/.nixos/home/programs/browsers/bobjpmbefncnijkhhepdacmjebpofeej.crx";
crxPath = ./bobjpmbefncnijkhhepdacmjebpofeej.crx;
}
];