33 lines
695 B
Nix
33 lines
695 B
Nix
{ stdenv, lib, fetchgit, fetchhg, go_1_3, trousers }:
|
|
|
|
let deps = import ./deps.nix {
|
|
inherit stdenv lib fetchgit fetchhg;
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "pond";
|
|
|
|
buildInputs = [ go_1_3 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;
|
|
};
|
|
}
|
|
|