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, config,
pkgs, pkgs,
firefox-gx-src,
... ...
}: let }: let
inherit (builtins) readFile; inherit (builtins) readFile;
firefox-addons = pkgs.recurseIntoAttrs (pkgs.callPackage ./addons {}); firefox-addons = pkgs.recurseIntoAttrs (pkgs.callPackage ./addons {});
sound-volume = firefox-addons."600-sound-volume"; sound-volume = firefox-addons."600-sound-volume";
firefox-gx = pkgs.callPackage ./firefox-gx {}; firefox-gx = pkgs.callPackage ./firefox-gx {
inherit firefox-gx-src;
};
in { in {
home.file = { home.file = {
".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components"; ".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components";

View file

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