1 { lib, stdenv, fetchFromGitHub, python3, mpv }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-Xx18EX/MxLrnwZGwMFZJxJURUpjU2P01CQue5XbZ3fw=";
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;
33 mainProgram = "ff2mpv.py";