2015-02-06 05:53:32 +00:00
|
|
|
{ enableX11 ? true,
|
2021-01-21 17:00:13 +00:00
|
|
|
lib, stdenv, fetchurl, pkg-config, xorg, python3, frame }:
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "grail";
|
2017-08-25 06:30:10 +00:00
|
|
|
version = "3.1.1";
|
2016-08-30 15:52:17 +00:00
|
|
|
|
2015-02-06 05:53:32 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://launchpad.net/grail/trunk/${version}/+download/${pname}-${version}.tar.bz2";
|
2017-08-25 06:30:10 +00:00
|
|
|
sha256 = "1wwx5ibjdz5pyd0f5cd1n91y67r68dymxpm2lgd829041xjizvay";
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ python3 frame ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optionals enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.libXfixes];
|
2015-02-06 05:53:32 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
configureFlags = lib.optional enableX11 "--with-x11";
|
2015-02-06 05:53:32 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/canonical-multitouch/grail";
|
2015-02-06 05:53:32 +00:00
|
|
|
description = "Gesture Recognition And Instantiation Library";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-02-06 05:53:32 +00:00
|
|
|
};
|
2016-08-30 15:52:17 +00:00
|
|
|
}
|