isponsorblocktv: package and deploy
All checks were successful
flake / flake (push) Successful in 1m12s

This commit is contained in:
Jake Hillion 2024-09-09 20:55:31 +01:00
parent 5c1010b702
commit c79aa3a2ce
3 changed files with 31 additions and 0 deletions

View File

@ -30,7 +30,9 @@
getSystemOverlays = system: nixpkgsConfig: [ getSystemOverlays = system: nixpkgsConfig: [
(final: prev: { (final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system}; unstable = nixpkgs-unstable.legacyPackages.${prev.system};
"storj" = final.callPackage ./pkgs/storj.nix { }; "storj" = final.callPackage ./pkgs/storj.nix { };
"isponsorblocktv" = final.callPackage ./pkgs/isponsorblocktv.nix { };
}) })
]; ];
in in

View File

@ -49,6 +49,9 @@
## Custom Services ## Custom Services
custom.locations.autoServe = true; custom.locations.autoServe = true;
# TODO: remove me
environment.systemPackages = with pkgs; [ isponsorblocktv ];
# Networking # Networking
networking = { networking = {
useDHCP = false; useDHCP = false;

26
pkgs/isponsorblocktv.nix Normal file
View File

@ -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 = "";
};
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;
}];
};
}