1 { lib, stdenv, fetchurl, cmake, pkg-config, gettext
2 , gtk2, libcanberra, libnotify, pcre, sqlite, xorg
6 stdenv.mkDerivation rec {
7 pname = "libgaminggear";
11 url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
12 sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
15 outputs = [ "dev" "out" "bin" ];
17 nativeBuildInputs = [ cmake pkg-config gettext ];
19 propagatedBuildInputs = [
20 gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs
24 "-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
25 "-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
26 "-DINSTALL_LIBDIR=lib"
29 # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
30 NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
33 moveToOutput bin "$bin"
37 description = "Provides functionality for gaming input devices";
38 homepage = "https://sourceforge.net/projects/libgaminggear/";
39 platforms = lib.platforms.linux;
40 license = lib.licenses.gpl2Plus;