2015-02-05 21:53:32 -08:00
|
|
|
{ enableX11 ? true,
|
2015-09-15 02:26:18 -07:00
|
|
|
stdenv, fetchurl, pkgconfig, xorg, python3, frame }:
|
2015-02-05 21:53:32 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "grail-${version}";
|
2017-08-24 23:30:10 -07:00
|
|
|
version = "3.1.1";
|
2016-08-30 08:52:17 -07:00
|
|
|
|
2015-02-05 21:53:32 -08:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/grail/trunk/${version}/+download/${name}.tar.bz2";
|
2017-08-24 23:30:10 -07:00
|
|
|
sha256 = "1wwx5ibjdz5pyd0f5cd1n91y67r68dymxpm2lgd829041xjizvay";
|
2015-02-05 21:53:32 -08:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ python3 frame ]
|
2016-08-30 08:52:17 -07:00
|
|
|
++ stdenv.lib.optionals enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.libXfixes];
|
2015-02-05 21:53:32 -08:00
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional enableX11 "--with-x11";
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://launchpad.net/canonical-multitouch/grail;
|
2015-02-05 21:53:32 -08:00
|
|
|
description = "Gesture Recognition And Instantiation Library";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2016-08-30 08:52:17 -07:00
|
|
|
}
|