feat(firefox): improve versioning for gx
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-25 14:18:23 -05:00
parent 8c32a7372b
commit 93dacca777
4 changed files with 31 additions and 20 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -1,12 +1,23 @@
{ {
lib, lib,
mkVersion, mkVersion,
firefox-gx-src, self,
stdenvNoCC, stdenvNoCC,
}: }: let
inherit (builtins) fromJSON readFile;
inherit (lib) hasPrefix replaceStrings;
inherit (self.inputs) firefox-gx-src;
lock = fromJSON (readFile ../flake.lock);
rev = lock.nodes.firefox-gx-src.original.ref;
in
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
pname = "firefox-gx"; pname = "firefox-gx";
version = mkVersion firefox-gx-src; version =
if hasPrefix "v." rev
then replaceStrings ["v"] ["0"] rev
else mkVersion firefox-gx-src;
src = firefox-gx-src; src = firefox-gx-src;

View file

@ -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";