about summary refs log tree commit diff
path: root/pkgs/applications/networking/pond/default.nix
blob: 9d3954d839ba5ea98a9623276d3fc38056bfec43 (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
{ stdenv, lib, fetchgit, fetchhg, go, trousers }:

let deps = import ./deps.nix {
  inherit stdenv lib fetchgit fetchhg;
};

in stdenv.mkDerivation rec {
  name = "pond";

  buildInputs  = [ go trousers ];

  unpackPhase = ''
    export GOPATH=$PWD
    echo $PWD
    cp -LR ${deps}/src src
    chmod u+w -R src
  '';

  installPhase = ''
    export GOPATH="$PWD"
    mkdir -p $out/bin
    go build --tags nogui -v -o $out/bin/pond-cli github.com/agl/pond/client
  '';

  meta = with lib; {
    description = "Forward secure, asynchronous messaging for the discerning";
    homepage = https://pond.imperialviolet.org;
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}