firefox-extensions.open-in-mpv: build from source
this ensures that the extension and the native component stay in sync
This commit is contained in:
parent
4e180e11df
commit
9fde167e71
|
@ -116,6 +116,7 @@ in (lib.makeScope newScope (self: with self; {
|
|||
browserpass-extension = callPackage ./browserpass-extension { };
|
||||
bypass-paywalls-clean = callPackage ./bypass-paywalls-clean { };
|
||||
ctrl-shift-c-should-copy = callPackage ./ctrl-shift-c-should-copy { };
|
||||
open-in-mpv = callPackage ./open-in-mpv { };
|
||||
|
||||
ether-metamask = fetchVersionedAddon rec {
|
||||
extid = "webextension@metamask.io";
|
||||
|
@ -138,17 +139,6 @@ in (lib.makeScope newScope (self: with self; {
|
|||
version = "1.49";
|
||||
hash = "sha256-LnR5z3fqNJywlr/khFdV4qloKGQhbxNZQvWCEgz97DU=";
|
||||
};
|
||||
open-in-mpv = fetchVersionedAddon rec {
|
||||
# usage:
|
||||
# - click the "puzzle" icon in top-right of browser -> open in mpv
|
||||
# - or, (shift)right-click a video and select "open in mpv"
|
||||
# - but note that this option does not work for Youtube videos
|
||||
extid = "{d66c8515-1e0d-408f-82ee-2682f2362726}";
|
||||
pname = "open-in-mpv";
|
||||
url = "https://github.com/Baldomo/open-in-mpv/releases/download/v${version}/firefox.xpi";
|
||||
version = "2.2.0";
|
||||
hash = "sha256-jRP0hvEyScGnQ2K5EFX+ggtu6B0h9Y3fJxYYnI8cMbc=";
|
||||
};
|
||||
sidebery = fetchVersionedAddon rec {
|
||||
extid = "{3c078156-979c-498b-8990-85f7987dd929}";
|
||||
pname = "sidebery";
|
||||
|
|
20
pkgs/additional/firefox-extensions/open-in-mpv/default.nix
Normal file
20
pkgs/additional/firefox-extensions/open-in-mpv/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ stdenv
|
||||
, open-in-mpv
|
||||
, zip
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "open-in-mpv-firefox";
|
||||
inherit (open-in-mpv) version src;
|
||||
|
||||
nativeBuildInputs = [ zip ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install build/firefox.zip $out
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
makeFlags = [ "build/firefox.zip" ];
|
||||
|
||||
passthru.extid = "{d66c8515-1e0d-408f-82ee-2682f2362726}";
|
||||
}
|
Loading…
Reference in New Issue
Block a user