depot/third_party/nixpkgs/pkgs/development/libraries/grail/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
808 B
Nix

{ enableX11 ? true,
stdenv, fetchurl, pkgconfig, xorg, python3, frame }:
stdenv.mkDerivation rec {
pname = "grail";
version = "3.1.1";
src = fetchurl {
url = "https://launchpad.net/grail/trunk/${version}/+download/${pname}-${version}.tar.bz2";
sha256 = "1wwx5ibjdz5pyd0f5cd1n91y67r68dymxpm2lgd829041xjizvay";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ python3 frame ]
++ stdenv.lib.optionals 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;
};
}