nixpkgs/pkgs/applications/networking/pond/default.nix

33 lines
695 B
Nix
Raw Normal View History

2015-01-06 07:18:55 +00:00
{ stdenv, lib, fetchgit, fetchhg, go_1_3, trousers }:
2014-10-03 02:32:29 +01:00
let deps = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg;
};
in stdenv.mkDerivation rec {
name = "pond";
2015-01-06 07:18:55 +00:00
buildInputs = [ go_1_3 trousers ];
2014-10-03 02:32:29 +01:00
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;
};
}