at 18.03-beta 24 lines 784 B view raw
1{ enableX11 ? true 2, stdenv, fetchurl, pkgconfig, xorg, xorgserver, xinput }: 3 4stdenv.mkDerivation rec { 5 name = "frame-${version}"; 6 version = "2.5.0"; 7 src = fetchurl { 8 url = "https://launchpad.net/frame/trunk/v${version}/+download/${name}.tar.xz"; 9 sha256 = "bc2a20cd3ac1e61fe0461bd3ee8cb250dbcc1fa511fad0686d267744e9c78f3a"; 10 }; 11 12 buildInputs = [ 13 stdenv pkgconfig 14 ] ++ stdenv.lib.optionals enableX11 [xorg.xorgserver xorg.libX11 xorg.libXext xorg.libXi]; 15 16 configureFlags = stdenv.lib.optional enableX11 "--with-x11"; 17 18 meta = { 19 homepage = https://launchpad.net/frame; 20 description = "Handles the buildup and synchronization of a set of simultaneous touches"; 21 license = stdenv.lib.licenses.gpl3; 22 platforms = stdenv.lib.platforms.linux; 23 }; 24}