feat(firefox): improve versioning for gx
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
8c32a7372b
commit
93dacca777
4 changed files with 31 additions and 20 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -1,27 +1,38 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
mkVersion,
|
mkVersion,
|
||||||
firefox-gx-src,
|
self,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
}:
|
}: let
|
||||||
stdenvNoCC.mkDerivation {
|
inherit (builtins) fromJSON readFile;
|
||||||
pname = "firefox-gx";
|
inherit (lib) hasPrefix replaceStrings;
|
||||||
version = mkVersion firefox-gx-src;
|
|
||||||
|
|
||||||
src = firefox-gx-src;
|
inherit (self.inputs) firefox-gx-src;
|
||||||
|
|
||||||
installPhase = ''
|
lock = fromJSON (readFile ../flake.lock);
|
||||||
# Personal changes
|
rev = lock.nodes.firefox-gx-src.original.ref;
|
||||||
sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css
|
in
|
||||||
sed -i 's#../newtab/wallpaper-dark1.png#../newtab/wallpaper-dark2.png#' ./chrome/components/ogx_root-personal.css
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "firefox-gx";
|
||||||
|
version =
|
||||||
|
if hasPrefix "v." rev
|
||||||
|
then replaceStrings ["v"] ["0"] rev
|
||||||
|
else mkVersion firefox-gx-src;
|
||||||
|
|
||||||
mkdir -p $out
|
src = firefox-gx-src;
|
||||||
cp -r ./* $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
installPhase = ''
|
||||||
description = "Firefox Theme CSS to Opera GX Lovers";
|
# Personal changes
|
||||||
homepage = "https://github.com/Godiesc/firefox-gx";
|
sed -i 's/var(--fuchsia))/var(--purple))/' ./chrome/components/ogx_root-personal.css
|
||||||
license = lib.licenses.mspl;
|
sed -i 's#../newtab/wallpaper-dark1.png#../newtab/wallpaper-dark2.png#' ./chrome/components/ogx_root-personal.css
|
||||||
};
|
|
||||||
}
|
mkdir -p $out
|
||||||
|
cp -r ./* $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Firefox Theme CSS to Opera GX Lovers";
|
||||||
|
homepage = "https://github.com/Godiesc/firefox-gx";
|
||||||
|
license = lib.licenses.mspl;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -344,7 +344,7 @@ let
|
||||||
{
|
{
|
||||||
owner = "Godiesc";
|
owner = "Godiesc";
|
||||||
repo = "firefox-gx";
|
repo = "firefox-gx";
|
||||||
# ref = "v.9.6";
|
ref = "v.9.7";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "git-theme-src";
|
name = "git-theme-src";
|
||||||
|
|
Loading…
Reference in a new issue