summary refs log tree commit diff
path: root/pkgs/development/libraries/grail/default.nix
blob: a4f27824d1366557060630fc8a64e421242b36a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ enableX11 ? true,
  stdenv, fetchurl, pkgconfig, xorg, python3, frame }:

stdenv.mkDerivation rec {
  name = "grail-${version}";
  version = "3.1.0";
  src = fetchurl {
    url = "https://launchpad.net/grail/trunk/${version}/+download/${name}.tar.bz2";
    sha256 = "c26dced1b3f4317ecf6af36db0e90294d87e43966d56aecc4e97b65368ab78b9";
  };

  buildInputs = [ pkgconfig python3 frame ]
  ++ stdenv.lib.optional enableX11 [xorg.libX11 xorg.libXtst xorg.libXext xorg.libXi xorg.libXfixes];

  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;
  };
}