2015-02-06 05:53:32 +00:00
|
|
|
{ enableX11 ? true,
|
2015-09-15 10:26:18 +01:00
|
|
|
stdenv, fetchurl, pkgconfig, xorg, python3, frame }:
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "grail";
|
2017-08-25 07:30:10 +01:00
|
|
|
version = "3.1.1";
|
2016-08-30 16:52:17 +01:00
|
|
|
|
2015-02-06 05:53:32 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://launchpad.net/grail/trunk/${version}/+download/${pname}-${version}.tar.bz2";
|
2017-08-25 07:30:10 +01:00
|
|
|
sha256 = "1wwx5ibjdz5pyd0f5cd1n91y67r68dymxpm2lgd829041xjizvay";
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ python3 frame ]
|
2016-08-30 16:52:17 +01: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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/canonical-multitouch/grail";
|
2015-02-06 05:53:32 +00:00
|
|
|
description = "Gesture Recognition And Instantiation Library";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2016-08-30 16:52:17 +01:00
|
|
|
}
|