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