summary refs log tree commit diff
path: root/pkgs/servers/web-apps/pump.io/default.nix
blob: f888566cad664eacf85a35bcf2d08f30df863b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ pkgs, system, stdenv, fetchurl, makeWrapper, nodejs, graphicsmagick }:

with stdenv.lib;

let
  # To regenerate composition.nix, run generate.sh.
  nodePackages = import ./composition.nix {
    inherit pkgs system nodejs;
  };
in
nodePackages.package.override (oldAttrs: {
  buildInputs = oldAttrs.buildInputs ++ [ makeWrapper ];

  postInstall = ''
    for prog in pump pump-authorize pump-follow pump-post-note pump-register-app pump-register-user pump-stop-following; do
      wrapProgram "$out/bin/$prog" \
        --prefix PATH : ${graphicsmagick}/bin:$out/bin
    done
  '';

  passthru.names = ["pump.io"];

  meta = {
    description = "Social server with an ActivityStreams API";
    homepage = http://pump.io/;
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = [ maintainers.rvl ];
    longDescription = ''
      This is pump.io. It's a stream server that does most of what
      people really want from a social network.

      What's it for?

      I post something and my followers see it. That's the rough idea
      behind the pump.

      There's an API defined in the API.md file. It uses
      activitystrea.ms JSON as the main data and command format.

      You can post almost anything that can be represented with
      activity streams -- short or long text, bookmarks, images,
      video, audio, events, geo checkins. You can follow friends,
      create lists of people, and so on.

      The software is useful for at least these scenarios:

      * Mobile-first social networking
      * Activity stream functionality for an existing app
      * Experimenting with social software
    '';
  };
})