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