2023-11-22 15:33:16 -05:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}: let
|
2023-10-09 04:13:58 -04:00
|
|
|
pname = "firefox-gx";
|
2024-01-27 03:02:01 -05:00
|
|
|
version = "c1d9888d27543ded51f9854d7e58db601fd33d43";
|
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;
|
2024-01-27 03:02:01 -05:00
|
|
|
rev = "${version}";
|
2024-01-30 14:56:47 -05:00
|
|
|
sha256 = "sha256-FCx5mADqrjAN27lLaZViOFGUNDg/2jpern8sem8u49w=";
|
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-10-10 15:34:34 -04:00
|
|
|
|
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; {
|
2024-01-04 03:39:14 -05:00
|
|
|
description = "Firefox Theme CSS to Opera GX Lovers";
|
2023-11-22 15:33:16 -05:00
|
|
|
homepage = "https://github.com/Godiesc/firefox-gx";
|
|
|
|
license = licenses.mspl;
|
|
|
|
};
|
|
|
|
}
|