mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
librewolf: Add invidious extension
Note that to significantly improve video quality DASH can be enabled in the settings. This may become the default in the future.
This commit is contained in:
parent
43230b87b8
commit
9ff3c97151
@ -25,6 +25,7 @@ in
|
|||||||
redlib
|
redlib
|
||||||
new-tab-identity
|
new-tab-identity
|
||||||
showdex
|
showdex
|
||||||
|
invidious
|
||||||
];
|
];
|
||||||
|
|
||||||
search = {
|
search = {
|
||||||
|
33
packages/invidious.nix
Normal file
33
packages/invidious.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchurl,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
|
pname = "invidious";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/3661232/invidious_site-${finalAttrs.version}.xpi";
|
||||||
|
hash = "sha256-xSyVIz5uqdUoaW+IacG6+VpgBzPUBbpOoXx2x6OrPBQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm644 "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{0d069122-737b-44f3-8309-80020b0d0c70}.xpi"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://addons.mozilla.org/en-US/firefox/addon/invidious-site/";
|
||||||
|
description = "Redirect YouTube links to Invidious";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
|
maintainers = with lib.maintainers; [ donovanglover ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user