add zotero
This commit is contained in:
parent
2cfa6b704e
commit
e80035cb2b
3 changed files with 21 additions and 3 deletions
|
|
@ -3,13 +3,29 @@ args:
|
|||
{
|
||||
packages = let
|
||||
firefox-addons = args.firefox-addons or null;
|
||||
pkgs = args.pkgs;
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
|
||||
buildFirefoxXpiAddon = firefox-addons.lib.${system}.buildFirefoxXpiAddon or null;
|
||||
|
||||
zotero-connector = if buildFirefoxXpiAddon != null then
|
||||
buildFirefoxXpiAddon {
|
||||
pname = "zotero-connector";
|
||||
version = "5.0.193";
|
||||
addonId = "zotero@chnm.gmu.edu";
|
||||
url = "https://download.zotero.org/connector/firefox/release/Zotero_Connector-5.0.193.xpi";
|
||||
sha256 = "jQLtVkFeRDZ8IiVGRKFcJ5b6AncXHnLuM5TS8vaAiQY=";
|
||||
meta = {};
|
||||
}
|
||||
else null;
|
||||
in
|
||||
if firefox-addons != null then
|
||||
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [
|
||||
(if firefox-addons != null then
|
||||
with firefox-addons.packages.${system}; [
|
||||
ublock-origin
|
||||
vimium
|
||||
cookies-txt
|
||||
darkreader
|
||||
]
|
||||
else [];
|
||||
else [])
|
||||
++ (if zotero-connector != null then [ zotero-connector ] else []);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue