2018-09-28 20:39:50 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, gettext
|
|
|
|
, gtk2, libcanberra, libnotify, pcre, sqlite, xorg
|
2020-08-13 20:26:10 +01:00
|
|
|
, harfbuzz
|
2018-09-28 20:39:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libgaminggear";
|
2018-09-28 20:39:50 +01:00
|
|
|
version = "0.15.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
|
2018-09-28 20:39:50 +01:00
|
|
|
sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "bin" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig gettext ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
|
|
|
|
"-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
|
|
|
|
"-DINSTALL_LIBDIR=lib"
|
|
|
|
];
|
|
|
|
|
2020-08-13 20:26:10 +01:00
|
|
|
# https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
|
|
|
|
|
2018-09-28 20:39:50 +01:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin "$bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides functionality for gaming input devices";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/libgaminggear/";
|
2018-09-28 20:39:50 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|