2018-09-28 20:40:23 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, gettext
|
2018-10-03 05:27:02 +01:00
|
|
|
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
2018-09-28 20:40:23 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "roccat-tools-${version}";
|
2019-04-07 15:23:59 +01:00
|
|
|
version = "5.8.0";
|
2018-09-28 20:40:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/roccat/${name}.tar.bz2";
|
2019-04-07 15:23:59 +01:00
|
|
|
sha256 = "0fr1ibgsyx756fz43hxq0cik51rkq1ymgimw8mz2d0jy63d7h48q";
|
2018-09-28 20:40:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -re 's,/(etc/xdg),\1,' roccateventhandler/CMakeLists.txt
|
|
|
|
|
|
|
|
sed -i -e '/roccat_profile_dir(void).*{/,/}/ {
|
|
|
|
/return/c \
|
|
|
|
return g_build_path("/", g_get_user_data_dir(), "roccat", NULL);
|
|
|
|
}' libroccat/roccat_helper.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig gettext ];
|
2018-10-03 05:27:02 +01:00
|
|
|
buildInputs = [ dbus dbus-glib libgaminggear libgudev lua ];
|
2018-09-28 20:40:23 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUDEVDIR=\${out}/lib/udev/rules.d"
|
|
|
|
"-DCMAKE_MODULE_PATH=${libgaminggear.dev}/lib/cmake"
|
|
|
|
"-DWITH_LUA=${lua.luaversion}"
|
|
|
|
"-DLIBDIR=lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tools to configure ROCCAT devices";
|
|
|
|
homepage = http://roccat.sourceforge.net/;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|