nixos-configs/home/firefox/firefox-gx/default.nix
matt1432 d47ef46c74
All checks were successful
Discord / discord commits (push) Has been skipped
fix(firefoxgx): change path of newtab image
2024-01-31 00:48:51 -05:00

37 lines
932 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
}: let
pname = "firefox-gx";
version = "c1d9888d27543ded51f9854d7e58db601fd33d43";
in
stdenvNoCC.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "Godiesc";
repo = pname;
rev = "${version}";
sha256 = "sha256-FCx5mADqrjAN27lLaZViOFGUNDg/2jpern8sem8u49w=";
};
installPhase = ''
# Personal changes
sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css
# Fix new tab background for nix
substituteInPlace ./chrome/components/ogx_root-personal.css \
--replace '../newtab/wallpaper-dark.png' "$out/chrome/newtab/private-dark.png"
mkdir -p $out
cp -r ./* $out
'';
meta = with lib; {
description = "Firefox Theme CSS to Opera GX Lovers";
homepage = "https://github.com/Godiesc/firefox-gx";
license = licenses.mspl;
};
}