19 stdenv.mkDerivation rec {
20 pname = "roccat-tools";
24 url = "mirror://sourceforge/roccat/${pname}-${version}.tar.bz2";
25 sha256 = "12j02rzbz3iqxprz8cj4kcfcdgnqlva142ci177axqmckcq6crvg";
29 sed -i -re 's,/(etc/xdg),\1,' roccateventhandler/CMakeLists.txt
31 sed -i -e '/roccat_profile_dir(void).*{/,/}/ {
33 return g_build_path("/", g_get_user_data_dir(), "roccat", NULL);
34 }' libroccat/roccat_helper.c
36 substituteInPlace udev/90-roccat-kone.rules \
37 --replace "/bin/sh" "${runtimeShell}" \
38 --replace "/sbin/modprobe" "${kmod}/bin/modprobe" \
39 --replace "/bin/echo" "${coreutils}/bin/echo"
56 "-DUDEVDIR=\${out}/lib/udev/rules.d"
57 "-DCMAKE_MODULE_PATH=${libgaminggear.dev}/lib/cmake"
58 "-DWITH_LUA=${lua.luaversion}"
62 env.NIX_CFLAGS_COMPILE = toString [
63 "-I${harfbuzz.dev}/include/harfbuzz"
65 # Workaround build failure on -fno-common toolchains:
66 # ld: ryos_talk.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait';
67 # ryos_custom_lights.c.o:(.bss+0x0): first defined here
72 description = "Tools to configure ROCCAT devices";
73 homepage = "https://roccat.sourceforge.net/";
74 platforms = lib.platforms.linux;
75 license = lib.licenses.gpl2Plus;