mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
Merge pull request #231848 from SuperSandro2000/open-in-mpv
open-in-mpv: init at 2.1.0
This commit is contained in:
commit
6e65003726
38
pkgs/applications/video/open-in-mpv/default.nix
Normal file
38
pkgs/applications/video/open-in-mpv/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "open-in-mpv";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Baldomo";
|
||||
repo = "open-in-mpv";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3Fsa3AwiHsb8VcKa4a/RKyYu+CD5nEX0nIXENhBZCWk=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -32519,6 +32519,8 @@ with pkgs;
|
||||
cutter = callPackage ../applications/video/mpv/scripts/cutter.nix { };
|
||||
};
|
||||
|
||||
open-in-mpv = callPackage ../applications/video/open-in-mpv { };
|
||||
|
||||
mrpeach = callPackage ../applications/audio/pd-plugins/mrpeach { };
|
||||
|
||||
mtpaint = callPackage ../applications/graphics/mtpaint { };
|
||||
|
Loading…
Reference in New Issue
Block a user