From 1c8ee23ad9675cd3b45e884a55250bcaa85b5660 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:39:11 +0530 Subject: [PATCH] doc: update instructions for building sponsorblock use nix build instead of git submodules make sure the scripts directory exists --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1b9a0a8..fd4bd7d 100644 --- a/README.md +++ b/README.md @@ -21,17 +21,16 @@ Once the keys are enrolled, we must run the following to rebuild our system from sudo nixos-rebuild switch --flake .#cafe-secureboot ``` -#### Optional: Installing Sponsorblock for mpv +### Sponsorblock for mpv -A fresh install is unlikely to have Rust and thus, the sponsorblock -library won't be installed. Since I won't be uploading the compiled shared -object, you have to compile it yourself. After the first rebuild, run: +Optionally, if you want to block sponsors in mpv, run ```sh pushd sources/mpv-sponsorblock -cargo build --release --locked -cp ./target/release/libmpv_sponsorblock.so ../mpv/scripts/sponsorblock.so +mkdir sources/mpv/scripts +nix build +cp result/lib/libmpv_sponsorblock.so ../mpv/scripts/sponsorblock.so popd ``` -followed by another rebuild. \ No newline at end of file +followed by another rebuild.