at 22.05-pre 42 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, cmake, pkg-config, gettext 2, gtk2, libcanberra, libnotify, pcre, sqlite, xorg 3, harfbuzz 4}: 5 6stdenv.mkDerivation rec { 7 pname = "libgaminggear"; 8 version = "0.15.1"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2"; 12 sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz"; 13 }; 14 15 outputs = [ "dev" "out" "bin" ]; 16 17 nativeBuildInputs = [ cmake pkg-config gettext ]; 18 19 propagatedBuildInputs = [ 20 gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs 21 ]; 22 23 cmakeFlags = [ 24 "-DINSTALL_CMAKE_MODULESDIR=lib/cmake" 25 "-DINSTALL_PKGCONFIGDIR=lib/pkgconfig" 26 "-DINSTALL_LIBDIR=lib" 27 ]; 28 29 # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/ 30 NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ]; 31 32 postFixup = '' 33 moveToOutput bin "$bin" 34 ''; 35 36 meta = { 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; 41 }; 42}