Skip to content

Commit

Permalink
firefox-meta-press: init
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Apr 11, 2024
1 parent 28139e9 commit 111b753
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/by-name/firefox-meta-press/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
wrapFirefox,
firefox-devedition-unwrapped,
fetchFirefoxAddon,
meta-press,
}:

let
# workaround for https://github.com/NixOS/nixpkgs/issues/273509
# TODO: remove when nixpkgs rev is updated
firefox-unwrapped = (
firefox-devedition-unwrapped.overrideAttrs (previousAttrs: {
passthru = previousAttrs.passthru // {
requireSigning = false;
allowAddonSideload = true;
};
})
);
in
wrapFirefox firefox-unwrapped {
nixExtensions = [
(
(fetchFirefoxAddon {
name = "meta-press-es"; # Has to be unique!
src = "${meta-press}/firefox_addon.xpi";
})
)
];
}

0 comments on commit 111b753

Please sign in to comment.