Unverified Commit 35a73717 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #218599 from Izorkin/update-peertube

peertube: 5.0.0 -> 5.1.0
parents 57d1b6f0 1afcb4c6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ in {

      environment = env;

      path = with pkgs; [ bashInteractive ffmpeg nodejs_16 openssl yarn python3 ];
      path = with pkgs; [ bashInteractive ffmpeg nodejs_18 openssl yarn python3 ];

      script = ''
        #!/bin/sh
@@ -490,7 +490,7 @@ in {
    services.nginx = lib.mkIf cfg.configureNginx {
      enable = true;
      virtualHosts."${cfg.localDomain}" = {
        root = "/var/lib/peertube";
        root = "/var/lib/peertube/www";

        # Application
        locations."/" = {
@@ -593,7 +593,7 @@ in {

        # Bypass PeerTube for performance reasons.
        locations."~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png|default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$" = {
          tryFiles = "/www/client-overrides/$1 /www/client/$1 $1";
          tryFiles = "/client-overrides/$1 /client/$1 $1";
          priority = 1310;
        };

@@ -859,7 +859,7 @@ in {
          home = cfg.package;
        };
      })
      (lib.attrsets.setAttrByPath [ cfg.user "packages" ] [ cfg.package peertubeEnv peertubeCli pkgs.ffmpeg pkgs.nodejs_16 pkgs.yarn ])
      (lib.attrsets.setAttrByPath [ cfg.user "packages" ] [ cfg.package peertubeEnv peertubeCli pkgs.ffmpeg pkgs.nodejs_18 pkgs.yarn ])
      (lib.mkIf cfg.redis.enableUnixSocket {${config.services.peertube.user}.extraGroups = [ "redis-peertube" ];})
    ];

+4 −4
Original line number Diff line number Diff line
@@ -14,18 +14,18 @@ let

in stdenv.mkDerivation rec {
  pname = "peertube";
  version = "5.0.0";
  version = "5.1.0";

  src = fetchFromGitHub {
    owner = "Chocobozzz";
    repo = "PeerTube";
    rev = "v${version}";
    hash = "sha256-Z2l0I/vVEx4ivC87N26QaUnQjySU/XRFW3biEwl7Od0=";
    hash = "sha256-C9mBF+QymGXyBB3IFX6MNgsZpHk739qv1/DLuvzrTaU=";
  };

  yarnOfflineCacheServer = fetchYarnDeps {
    yarnLock = "${src}/yarn.lock";
    hash = "sha256-EVviTrgSZYsi68hJIlSC9ArQS3aVp6EQNKbkVx12WJk=";
    hash = "sha256-W+pX2XO27j6qAVxvo+Xf1h7g3V0LUMtwNf+meZmkgwE=";
  };

  yarnOfflineCacheTools = fetchYarnDeps {
@@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {

  yarnOfflineCacheClient = fetchYarnDeps {
    yarnLock = "${src}/client/yarn.lock";
    hash = "sha256-ehA1W1bDXzApTpkWH7MEAQ9Ek73q3En76/LdvJhxh2Q=";
    hash = "sha256-TAv8QAAfT3q28jUo26h0uCGsoqBzAn8lybIaqNAApU8=";
  };

  nativeBuildInputs = [ brotli fixup_yarn_lock jq nodejs which yarn ];
+1 −1
Original line number Diff line number Diff line
@@ -33122,7 +33122,7 @@ with pkgs;
  peek = callPackage ../applications/video/peek { };
  peertube = callPackage ../servers/peertube {
    nodejs = nodejs_16;
    nodejs = nodejs_18;
  };
  peroxide = callPackage ../applications/networking/peroxide { };