nixos-configs/home/firefox/firefox-gx/default.nix
matt1432 261bc1f180
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(firefox-gx): fetch src from flake inputs
2024-02-26 14:38:51 -05:00

29 lines
694 B
Nix

{
lib,
stdenvNoCC,
firefox-gx-src,
}:
stdenvNoCC.mkDerivation {
pname = "firefox-gx";
version = firefox-gx-src.rev;
src = firefox-gx-src;
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-fail '../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;
};
}