refactor(firefox-gx): fetch src from flake inputs
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-26 14:38:51 -05:00
parent 5287b37f45
commit 261bc1f180
4 changed files with 8 additions and 10 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -1,13 +1,16 @@
{
config,
pkgs,
firefox-gx-src,
...
}: let
inherit (builtins) readFile;
firefox-addons = pkgs.recurseIntoAttrs (pkgs.callPackage ./addons {});
sound-volume = firefox-addons."600-sound-volume";
firefox-gx = pkgs.callPackage ./firefox-gx {};
firefox-gx = pkgs.callPackage ./firefox-gx {
inherit firefox-gx-src;
};
in {
home.file = {
".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components";

View file

@ -1,18 +1,13 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
firefox-gx-src,
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation {
pname = "firefox-gx";
version = "9.0";
version = firefox-gx-src.rev;
src = fetchFromGitHub {
owner = "Godiesc";
repo = pname;
rev = "v${version}";
sha256 = "sha256-FCx5mADqrjAN27lLaZViOFGUNDg/2jpern8sem8u49w=";
};
src = firefox-gx-src;
installPhase = ''
# Personal changes