2018-09-28 19:40:23 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, gettext
|
2018-10-03 04:27:02 +00:00
|
|
|
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
2020-08-13 19:38:19 +00:00
|
|
|
, harfbuzz
|
2018-09-28 19:40:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "roccat-tools";
|
2019-05-24 07:59:49 +00:00
|
|
|
version = "5.9.0";
|
2018-09-28 19:40:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/roccat/${pname}-${version}.tar.bz2";
|
2019-05-24 07:59:49 +00:00
|
|
|
sha256 = "12j02rzbz3iqxprz8cj4kcfcdgnqlva142ci177axqmckcq6crvg";
|
2018-09-28 19:40:23 +00: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 04:27:02 +00:00
|
|
|
buildInputs = [ dbus dbus-glib libgaminggear libgudev lua ];
|
2018-09-28 19:40:23 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUDEVDIR=\${out}/lib/udev/rules.d"
|
|
|
|
"-DCMAKE_MODULE_PATH=${libgaminggear.dev}/lib/cmake"
|
|
|
|
"-DWITH_LUA=${lua.luaversion}"
|
|
|
|
"-DLIBDIR=lib"
|
|
|
|
];
|
|
|
|
|
2020-08-13 19:38:19 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
|
|
|
|
|
2018-09-28 19:40:23 +00:00
|
|
|
meta = {
|
|
|
|
description = "Tools to configure ROCCAT devices";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://roccat.sourceforge.net/";
|
2018-09-28 19:40:23 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|