diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/instant-messengers/pond/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/instant-messengers/pond/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/instant-messengers/pond/default.nix b/nixpkgs/pkgs/applications/networking/instant-messengers/pond/default.nix new file mode 100644 index 000000000000..4c059cb20d83 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/instant-messengers/pond/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, buildGoPackage, trousers, dclxvi, wrapGAppsHook, pkg-config, gtk3, gtkspell3, + fetchgit }: + +let + gui = true; # Might be implemented with nixpkgs config. +in +buildGoPackage rec { + pname = "pond"; + version = "20150830-${lib.strings.substring 0 7 rev}"; + rev = "bce6e0dc61803c23699c749e29a83f81da3c41b2"; + + goPackagePath = "github.com/agl/pond"; + + src = fetchgit { + inherit rev; + url = "https://github.com/agl/pond"; + sha256 = "1dmgbg4ak3jkbgmxh0lr4hga1nl623mh7pvsgby1rxl4ivbzwkh4"; + }; + + goDeps = ./deps.nix; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ trousers gtk3 gtkspell3 ] + ++ lib.optional stdenv.hostPlatform.isx86_64 dclxvi + ++ lib.optionals gui [ wrapGAppsHook ]; + buildFlags = lib.optionals (!gui) [ "-tags" "nogui" ]; + excludedPackages = "\\(appengine\\|bn256cgo\\)"; + postPatch = lib.optionalString stdenv.hostPlatform.isx86_64 '' + grep -r 'bn256' | awk -F: '{print $1}' | xargs sed -i \ + -e "s,golang.org/x/crypto/bn256,github.com/agl/pond/bn256cgo,g" \ + -e "s,bn256\.,bn256cgo.,g" + ''; +} |