Making pond with GUI (gtk).

This commit is contained in:
Lluís Batlle i Rossell 2015-10-05 10:30:10 +02:00
parent f120b1d4f8
commit a1107b2bd2

View File

@ -1086,6 +1086,20 @@ let
propagatedBuildInputs = [ go-querystring ];
};
go-gtk-agl = buildFromGitHub {
rev = "6937b8d28cf70d583346220b966074cfd3a2e233";
owner = "agl";
repo = "go-gtk";
sha256 = "0jnhsv7ypyhprpy0fndah22v2pbbavr3db6f9wxl1vf34qkns3p4";
# Examples require many go libs, and gtksourceview seems ready only for
# gtk2
preConfigure = ''
rm -R example gtksourceview
'';
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pkgs.gtk3 pkgs.gtkspell3 ];
};
go-gypsy = buildFromGitHub {
rev = "42fc2c7ee9b8bd0ff636cd2d7a8c0a49491044c5";
owner = "kylelemons";
@ -2050,15 +2064,19 @@ let
doCheck = false; # bad import path in tests
};
pond = let isx86_64 = stdenv.lib.any (n: n == stdenv.system) stdenv.lib.platforms.x86_64; in buildFromGitHub {
pond = let
isx86_64 = stdenv.lib.any (n: n == stdenv.system) stdenv.lib.platforms.x86_64;
gui = true; # Might be implemented with nixpkgs config.
in buildFromGitHub {
rev = "bce6e0dc61803c23699c749e29a83f81da3c41b2";
owner = "agl";
repo = "pond";
sha256 = "1dmgbg4ak3jkbgmxh0lr4hga1nl623mh7pvsgby1rxl4ivbzwkh4";
buildInputs = [ net crypto protobuf ed25519 pkgs.trousers ]
++ stdenv.lib.optional isx86_64 pkgs.dclxvi;
buildFlags = "-tags nogui";
buildInputs = [ net crypto protobuf ed25519 pkgs.trousers go-gtk-agl ]
++ stdenv.lib.optional isx86_64 pkgs.dclxvi
++ stdenv.lib.optional gui go-gtk-agl;
buildFlags = stdenv.lib.optionalString (!gui) "-tags nogui";
excludedPackages = "\\(appengine\\|bn256cgo\\)";
postPatch = stdenv.lib.optionalString isx86_64 ''
grep -r 'bn256' | awk -F: '{print $1}' | xargs sed -i \