2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkg-config, gettext
|
2018-09-28 19:39:50 +00:00
|
|
|
, gtk2, libcanberra, libnotify, pcre, sqlite, xorg
|
2020-08-13 19:26:10 +00:00
|
|
|
, harfbuzz
|
2018-09-28 19:39:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libgaminggear";
|
2018-09-28 19:39:50 +00:00
|
|
|
version = "0.15.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/libgaminggear/${pname}-${version}.tar.bz2";
|
2018-09-28 19:39:50 +00:00
|
|
|
sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "bin" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config gettext ];
|
2018-09-28 19:39:50 +00:00
|
|
|
|
|
|
|
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 19:26:10 +00:00
|
|
|
# https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-I${harfbuzz.dev}/include/harfbuzz" ];
|
2020-08-13 19:26:10 +00:00
|
|
|
|
2018-09-28 19:39:50 +00:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput bin "$bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides functionality for gaming input devices";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/libgaminggear/";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2018-09-28 19:39:50 +00:00
|
|
|
};
|
|
|
|
}
|