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

37 lines
912 B
Nix
Raw Normal View History

2023-11-22 15:33:16 -05:00
{
lib,
stdenvNoCC,
fetchFromGitHub,
}: let
2023-10-09 04:13:58 -04:00
pname = "firefox-gx";
2023-11-23 18:44:54 -05:00
version = "8.6";
2023-10-09 04:13:58 -04:00
in
2023-11-22 15:33:16 -05:00
stdenvNoCC.mkDerivation {
inherit pname version;
2023-10-09 04:13:58 -04:00
2023-11-22 15:33:16 -05:00
src = fetchFromGitHub {
owner = "Godiesc";
repo = pname;
rev = "v.${version}";
2023-11-23 18:44:54 -05:00
sha256 = "sha256-AaufMjeK66y/3ymz7TkiIgvtmAvD/pjou7+wVglUFGc=";
2023-11-22 15:33:16 -05:00
};
2023-10-09 04:13:58 -04:00
2023-11-22 15:33:16 -05: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
2023-11-22 15:33:16 -05:00
# 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"
2023-11-22 15:33:16 -05:00
mkdir -p $out
cp -r ./* $out
'';
2023-10-09 04:13:58 -04:00
2023-11-22 15:33:16 -05:00
meta = with lib; {
description = "Firefox Theme CSS to Opera GX Lovers ";
homepage = "https://github.com/Godiesc/firefox-gx";
license = licenses.mspl;
};
}