Merge pull request #166581 from Enzime/ff2mpv
This commit is contained in:
commit
6d04e1364a
2 changed files with 36 additions and 0 deletions
34
pkgs/applications/misc/ff2mpv/default.nix
Normal file
34
pkgs/applications/misc/ff2mpv/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub, python3, mpv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ff2mpv";
|
||||||
|
version = "4.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "woodruffw";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-sxUp/JlmnYW2sPDpIO2/q40cVJBVDveJvbQMT70yjP4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ python3 mpv ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs .
|
||||||
|
substituteInPlace ff2mpv.json \
|
||||||
|
--replace '/home/william/scripts/ff2mpv' "$out/bin/ff2mpv.py"
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/lib/mozilla/native-messaging-hosts
|
||||||
|
cp ff2mpv.py $out/bin
|
||||||
|
cp ff2mpv.json $out/lib/mozilla/native-messaging-hosts
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Native Messaging Host for ff2mpv firefox addon.";
|
||||||
|
homepage = "https://github.com/woodruffw/ff2mpv";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ Enzime ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -26074,6 +26074,8 @@ with pkgs;
|
||||||
|
|
||||||
fetchmail = callPackage ../applications/misc/fetchmail { };
|
fetchmail = callPackage ../applications/misc/fetchmail { };
|
||||||
|
|
||||||
|
ff2mpv = callPackage ../applications/misc/ff2mpv { };
|
||||||
|
|
||||||
fff = callPackage ../applications/misc/fff { };
|
fff = callPackage ../applications/misc/fff { };
|
||||||
|
|
||||||
fig2dev = callPackage ../applications/graphics/fig2dev { };
|
fig2dev = callPackage ../applications/graphics/fig2dev { };
|
||||||
|
|
Loading…
Reference in a new issue