summary refs log tree commit diff
path: root/pkgs/development/libraries/frame/default.nix
blob: 86ebaa0d8d91fc901d515e37e755fea5b203763c (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
24
{ enableX11 ? true
,  stdenv, fetchurl, pkgconfig, xlibs, xorgserver, xinput }:

stdenv.mkDerivation rec {
  name = "frame-${version}";
  version = "2.5.0";
  src = fetchurl {
    url = "https://launchpad.net/frame/trunk/v${version}/+download/${name}.tar.xz";
    sha256 = "bc2a20cd3ac1e61fe0461bd3ee8cb250dbcc1fa511fad0686d267744e9c78f3a";
  };

  buildInputs = [ 
    stdenv pkgconfig
  ] ++ stdenv.lib.optional enableX11 [xlibs.xorgserver xlibs.libX11 xlibs.libXext xlibs.libXi];

  configureFlags = stdenv.lib.optional enableX11 "--with-x11";

  meta = {
    homepage = "https://launchpad.net/frame";
    description = "handles the buildup and synchronization of a set of simultaneous touches";
    license = stdenv.lib.licenses.gpl3;
    platforms = stdenv.lib.platforms.linux;
  };
}