Update firefox plugins

This commit is contained in:
Greg Hellings
2023-04-25 13:49:30 -05:00
parent b23b138ccc
commit 29f584cfda
3 changed files with 40 additions and 3 deletions
Generated
+3 -3
View File
@@ -174,11 +174,11 @@
}, },
"nurpkgs": { "nurpkgs": {
"locked": { "locked": {
"lastModified": 1677243766, "lastModified": 1682446307,
"narHash": "sha256-a+2V68cLjb951pYBEGbQGEVBcgti40uWtxTVnzvGFhY=", "narHash": "sha256-WtvLBaH/Ma+of/JpZLFjz35SXZ5xbNAYmc30FE2LByQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "9bde3171aeb5954b7955fcb09b231f53caf76b54", "rev": "bf4f1d29e517aef123b936c65c2be7d296ed99b2",
"type": "github" "type": "github"
}, },
"original": { "original": {
+2
View File
@@ -17,12 +17,14 @@ in with lib;
package = ffPkgs; package = ffPkgs;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
bitwarden bitwarden
pkgs.bypass-paywalls-clean
foxyproxy-standard foxyproxy-standard
multi-account-containers multi-account-containers
octotree octotree
refined-github refined-github
tree-style-tab tree-style-tab
ublock-origin ublock-origin
unpaywall
]; ];
profiles = { profiles = {
default.settings = { default.settings = {
+35
View File
@@ -29,6 +29,26 @@ let
(super.callPackage file {}) else (super.callPackage file {}) else
super."${og}"; super."${og}";
buildFirefoxXpiAddon = super.lib.makeOverridable ({ stdenv ? super.stdenv
, fetchurl ? super.fetchurl, pname, version, addonId, url, sha256, meta, ...
}:
stdenv.mkDerivation {
name = "${pname}-${version}";
inherit meta;
src = fetchurl { inherit url sha256; };
preferLocalBuild = true;
allowSubstitutes = true;
buildCommand = ''
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
mkdir -p "$dst"
install -v -m644 "$src" "$dst/${addonId}.xpi"
'';
});
in rec { in rec {
gregpy = myPython; gregpy = myPython;
@@ -58,6 +78,21 @@ in rec {
xonsh-direnv = cp ./xonsh-direnv.nix {}; xonsh-direnv = cp ./xonsh-direnv.nix {};
}; };
bypass-paywalls-clean = let version = "3.1.5.0";
in buildFirefoxXpiAddon {
pname = "bypass-paywalls-clean";
inherit version;
addonId = "{d133e097-46d9-4ecc-9903-fa6a722a6e0e}";
url = "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-${version}.xpi";
sha256 = "sha256-mBJkX8neimU5nwr1GEccCEr6Zy1Ku3JEH2A3LmPF3SU=";
meta = with super.lib; {
homepage = "https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean";
description = "Bypass Paywalls of (custom) news sites";
license = licenses.mit;
platforms = platforms.all;
};
};
enwiki-dump = super.callPackage ./enwiki-dump.nix {}; enwiki-dump = super.callPackage ./enwiki-dump.nix {};
hms = super.callPackage ./hms.nix { hms = super.callPackage ./hms.nix {
pkgs = self.pkgs; pkgs = self.pkgs;