aboutsummaryrefslogblamecommitdiff
path: root/flakes/peertube/default.nix
blob: 8ba0c5f483bee0283a44c8f7e3996c78a87dc81a (plain) (tree)








































                                                                                
{ stdenv, lib, src, server, client }:
stdenv.mkDerivation rec {
  inherit (src) version;
  pname = "peertube";
  inherit src;
  buildPhase = ''
    ln -s ${server.modules}/node_modules .
    rm -rf dist && cp -a ${server.dist}/dist dist
    rm -rf client/dist && cp -a ${client.dist}/dist client/
    '';
  installPhase = ''
    mkdir $out
    cp -a * $out
    ln -s /tmp $out/.cache
    '';

  meta = {
    description = "A free software to take back control of your videos";

    longDescription = ''
      PeerTube aspires to be a decentralized and free/libre alternative to video
      broadcasting services.
      PeerTube is not meant to become a huge platform that would centralize
      videos from all around the world. Rather, it is a network of
      inter-connected small videos hosters.
      Anyone with a modicum of technical skills can host a PeerTube server, aka
      an instance. Each instance hosts its users and their videos. In this way,
      every instance is created, moderated and maintained independently by
      various administrators.
      You can still watch from your account videos hosted by other instances
      though if the administrator of your instance had previously connected it
      with other instances.
    '';

    license = lib.licenses.agpl3Plus;

    homepage = "https://joinpeertube.org/";

    platforms = lib.platforms.unix;
  };
}