From a48ace323412eb81ca65658b15cd95e128ed1612 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Mon, 9 Sep 2024 20:55:31 +0100 Subject: [PATCH] isponsorblocktv: package and deploy --- flake.nix | 2 ++ hosts/sodium.pop.ts.hillion.co.uk/default.nix | 3 +++ pkgs/isponsorblocktv.nix | 26 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 pkgs/isponsorblocktv.nix diff --git a/flake.nix b/flake.nix index 097e90f..c429ea8 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,9 @@ getSystemOverlays = system: nixpkgsConfig: [ (final: prev: { unstable = nixpkgs-unstable.legacyPackages.${prev.system}; + "storj" = final.callPackage ./pkgs/storj.nix { }; + "isponsorblocktv" = final.callPackage ./pkgs/isponsorblocktv.nix { }; }) ]; in diff --git a/hosts/sodium.pop.ts.hillion.co.uk/default.nix b/hosts/sodium.pop.ts.hillion.co.uk/default.nix index 145f84c..e24de8d 100644 --- a/hosts/sodium.pop.ts.hillion.co.uk/default.nix +++ b/hosts/sodium.pop.ts.hillion.co.uk/default.nix @@ -49,6 +49,9 @@ ## Custom Services custom.locations.autoServe = true; + # TODO: remove me + environment.systemPackages = with pkgs; [ isponsorblocktv ]; + # Networking networking = { useDHCP = false; diff --git a/pkgs/isponsorblocktv.nix b/pkgs/isponsorblocktv.nix new file mode 100644 index 0000000..673e951 --- /dev/null +++ b/pkgs/isponsorblocktv.nix @@ -0,0 +1,26 @@ +{ lib, python3Packages, fetchFromGitHub, ... }: + +python3Packages.buildPythonPackage rec { + pname = "isponsorblocktv"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "dmunozv04"; + repo = "iSponsorBlockTV"; + rev = "v${version}"; + hash = "sha256-+6Od3uI1uqfbPbFbfQMbIqqgSM5FYC1JFUS8E5NBm7w="; + }; + + meta = with lib; { + description = "Skip sponsor segments in YouTube videos playing on a YouTube TV device."; + homepage = "https://github.com/dmunozv04/iSponsorBlockTV"; + license = licenses.gpl3Only; + maintainers = [{ + email = "jake@hillion.co.uk"; + matrix = "@jake:hillion.co.uk"; + name = "Jake Hillion"; + github = "JakeHillion"; + githubId = 5712856; + }]; + }; +}