1 { lib, stdenv, fetchFromGitHub, python3, mpv }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-sxUp/JlmnYW2sPDpIO2/q40cVJBVDveJvbQMT70yjP4=";
14 buildInputs = [ python3 mpv ];
18 substituteInPlace ff2mpv.json \
19 --replace '/home/william/scripts/ff2mpv' "$out/bin/ff2mpv.py"
23 mkdir -p $out/bin $out/lib/mozilla/native-messaging-hosts
25 cp ff2mpv.json $out/lib/mozilla/native-messaging-hosts
29 description = "Native Messaging Host for ff2mpv firefox addon.";
30 homepage = "https://github.com/woodruffw/ff2mpv";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ Enzime ];