nixos-configs/home/firefox/firefox-gx/default.nix
matt1432 b30d4a3053
Some checks failed
Binary Cache / Build (push) Failing after 7m12s
Discord / discord commits (push) Has been skipped
chore: update flake.lock
2023-12-25 15:59:48 -05:00

37 lines
912 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
}: let
pname = "firefox-gx";
version = "8.7";
in
stdenvNoCC.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "Godiesc";
repo = pname;
rev = "v.${version}";
sha256 = "sha256-lMco3TYQNVTQEF5TpKiHUbexdB5pD3OmqjACD2BJZaY=";
};
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 '../images/newtab/wallpaper-dark.png' "$out/chrome/images/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;
};
}