e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "open-in-mpv";
|
|
version = "2.1.0-unstable-2023-05-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Baldomo";
|
|
repo = "open-in-mpv";
|
|
rev = "07fc639b2882a9a68e539f0fc34b61e247c355fa";
|
|
hash = "sha256-XkoXvSh5uu96isXc1at36mxSCPylHgMLN97qSpj2cyc=";
|
|
};
|
|
|
|
vendorHash = "sha256-G6GZO2+CfEAYcf7zBcqDa808A0eJjM8dq7+4VGZ+P4c=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
postInstall = ''
|
|
install -Dm444 -t $out/share/applications scripts/open-in-mpv.desktop
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple web extension to open videos in mpv";
|
|
longDescription = ''
|
|
To function the browser extension must be installed and open-in-mpv must be set as the default scheme-handler for mpv:// eg.:
|
|
xdg-mime default open-in-mpv.desktop x-scheme-handler/mpv
|
|
|
|
https://addons.mozilla.org/en-US/firefox/addon/iina-open-in-mpv/
|
|
https://chrome.google.com/webstore/detail/open-in-mpv/ggijpepdpiehgbiknmfpfbhcalffjlbj
|
|
'';
|
|
homepage = "https://github.com/Baldomo/open-in-mpv";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
mainProgram = "open-in-mpv";
|
|
};
|
|
}
|