peertube: 7.0.1 -> 7.2.1 (#397648)

authored by Gaétan Lepage and committed by GitHub 6ef03463 e67b29f5

+17 -9
+1
nixos/modules/services/web-apps/peertube.nix
··· 34 34 "@obsolete" 35 35 "@privileged" 36 36 "@setuid" 37 + "@spawn" 37 38 ]; 38 39 39 40 cfgService = {
+16 -9
pkgs/by-name/pe/peertube/package.nix
··· 48 48 in 49 49 stdenv.mkDerivation rec { 50 50 pname = "peertube"; 51 - version = "7.0.1"; 51 + version = "7.2.1"; 52 52 53 53 src = fetchFromGitHub { 54 54 owner = "Chocobozzz"; 55 55 repo = "PeerTube"; 56 56 tag = "v${version}"; 57 - hash = "sha256-DoUSzqb8lrU+s5R95rxCN/5A8sgb11edAhv0T6YACRo="; 57 + hash = "sha256-I53LCCtB8iNGuABgvhRjUfxocasXCv4TV7jXtHVpMnU="; 58 58 }; 59 59 60 60 yarnOfflineCacheServer = fetchYarnDeps { 61 61 yarnLock = "${src}/yarn.lock"; 62 - hash = "sha256-WLaIIyz6SEekLFeVO39Swpny5/x5Jc1zoxy/6bmOXTk="; 62 + hash = "sha256-PMU6ZMcT+9Z3Y6+085e3hRnvs4Xii5FIkkOPvsltfMY="; 63 63 }; 64 64 65 65 yarnOfflineCacheClient = fetchYarnDeps { 66 66 yarnLock = "${src}/client/yarn.lock"; 67 - hash = "sha256-/ZdORSnwk29ubsgKKB7RfHCetODNOH9DzkflQdDsMz0="; 67 + hash = "sha256-AWUnxC/cwtKCa70MKmHeOr6ussMYyQ5awQAnWYzCA1s="; 68 68 }; 69 69 70 70 yarnOfflineCacheAppsCli = fetchYarnDeps { ··· 74 74 75 75 yarnOfflineCacheAppsRunner = fetchYarnDeps { 76 76 yarnLock = "${src}/apps/peertube-runner/yarn.lock"; 77 - hash = "sha256-R7oXJUT698l2D1WkQGTWfkmbC7bC1XJ04xT0O8bwuI8="; 77 + hash = "sha256-t7H0VNLM48sTfctD9V2CFdi/0JRETu5cj/dBy6aNFW8="; 78 78 }; 79 79 80 80 outputs = [ ··· 106 106 cd ~/client 107 107 yarn config --offline set yarn-offline-mirror $yarnOfflineCacheClient 108 108 yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress 109 + 110 + # Switch sass-embedded to sass 111 + find node_modules/vite/dist -name "*.js" -type f -exec grep -l "sass-embedded" {} \; | while read file; do 112 + echo "Patching $file" 113 + sed -i 's/"sass-embedded"/"sass"/g; s/'"'"'sass-embedded'"'"'/'"'"'sass'"'"'/g' "$file" 114 + done 115 + 109 116 cd ~/apps/peertube-cli 110 117 yarn config --offline set yarn-offline-mirror $yarnOfflineCacheAppsCli 111 118 yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress ··· 174 181 # be needed, either now or in the future. If they might be, then we probably want 175 182 # to move the package to $out above instead of removing the broken symlink. 176 183 rm $out/node_modules/@peertube/{peertube-server,peertube-transcription-devtools,peertube-types-generator,tests} 177 - rm $out/client/node_modules/@peertube/{peertube-transcription-devtools,peertube-types-generator,tests} 184 + rm $out/client/node_modules/@peertube/{peertube-transcription-devtools,peertube-types-generator,tests,player} 178 185 179 186 mkdir -p $cli/bin 180 187 mv ~/apps/peertube-cli/{dist,node_modules,package.json,yarn.lock} $cli ··· 193 200 194 201 passthru.tests.peertube = nixosTests.peertube; 195 202 196 - meta = with lib; { 203 + meta = { 197 204 description = "Free software to take back control of your videos"; 198 205 longDescription = '' 199 206 PeerTube aspires to be a decentralized and free/libre alternative to video ··· 209 216 though if the administrator of your instance had previously connected it 210 217 with other instances. 211 218 ''; 212 - license = licenses.agpl3Plus; 219 + license = lib.licenses.agpl3Plus; 213 220 homepage = "https://joinpeertube.org/"; 214 221 platforms = [ 215 222 "x86_64-linux" ··· 217 224 # feasible, looking for maintainer to help out 218 225 # "x86_64-darwin" "aarch64-darwin" 219 226 ]; 220 - maintainers = with maintainers; [ 227 + maintainers = with lib.maintainers; [ 221 228 immae 222 229 izorkin 223 230 stevenroose