Files
nixpkgs/pkgs/by-name/ff/ff2mpv/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
889 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3,
mpv,
}:
stdenv.mkDerivation rec {
pname = "ff2mpv";
version = "5.1.0";
src = fetchFromGitHub {
owner = "woodruffw";
repo = "ff2mpv";
rev = "v${version}";
hash = "sha256-Xx18EX/MxLrnwZGwMFZJxJURUpjU2P01CQue5XbZ3fw=";
};
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 = [ ];
mainProgram = "ff2mpv.py";
};
}