nixos-configs/home/firefox/firefox-gx/default.nix

30 lines
694 B
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
lib,
stdenvNoCC,
firefox-gx-src,
}:
stdenvNoCC.mkDerivation {
2023-10-09 04:13:58 -04:00
pname = "firefox-gx";
version = firefox-gx-src.rev;
2023-10-09 04:13:58 -04:00
src = firefox-gx-src;
2023-10-09 04:13:58 -04:00
installPhase = ''
# Personal changes
sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css
2023-10-09 04:13:58 -04:00
# Fix new tab background for nix
substituteInPlace ./chrome/components/ogx_root-personal.css \
--replace-fail '../newtab/wallpaper-dark.png' "$out/chrome/newtab/private-dark.png"
mkdir -p $out
cp -r ./* $out
'';
2023-10-09 04:13:58 -04:00
meta = with lib; {
description = "Firefox Theme CSS to Opera GX Lovers";
homepage = "https://github.com/Godiesc/firefox-gx";
license = licenses.mspl;
};
}