1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/inputmethods/touchegg/default.nix
2018-02-24 17:06:49 +02:00

27 lines
899 B
Nix

{ stdenv, fetchurl, xorg, xorgserver, qt4, libGLU_combined, geis, qmake4Hook }:
stdenv.mkDerivation rec {
name = "touchegg-${version}";
version = "1.1.1";
src = fetchurl {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/touchegg/${name}.tar.gz";
sha256 = "95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038";
};
buildInputs = [ xorgserver libGLU_combined xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ];
nativeBuildInputs = [ qmake4Hook ];
preConfigure = ''
sed -e "s@/usr/@$out/@g" -i $(find . -name touchegg.pro)
sed -e "s@/usr/@$out/@g" -i $(find ./src/touchegg/config/ -name Config.cpp)
'';
meta = {
homepage = https://github.com/JoseExposito/touchegg;
description = "Macro binding for touch surfaces";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}