3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #47493 (add roccat-tools)

This adds roccat-tools and one required dependency (libgaminggear),
which I had laying around since June 2016 but never submitted upstream
until now.

The tools are required if you want to configure one of the hardware
devices from the manufactorer ROCCAT.

Builds for both have been tested against i686-linux, x86_64-linux and
aarch64-linux.
This commit is contained in:
aszlig 2018-09-28 22:39:17 +02:00
commit d83dc00853
No known key found for this signature in database
GPG key ID: 684089CE67EBB691
3 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, fetchurl, cmake, pkgconfig, gettext
, gtk2, libcanberra, libnotify, pcre, sqlite, xorg
}:
stdenv.mkDerivation rec {
name = "libgaminggear-${version}";
version = "0.15.1";
src = fetchurl {
url = "mirror://sourceforge/libgaminggear/${name}.tar.bz2";
sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz";
};
outputs = [ "dev" "out" "bin" ];
nativeBuildInputs = [ cmake pkgconfig gettext ];
propagatedBuildInputs = [
gtk2 libcanberra libnotify pcre sqlite xorg.libXdmcp xorg.libpthreadstubs
];
enableParallelBuilding = true;
cmakeFlags = [
"-DINSTALL_CMAKE_MODULESDIR=lib/cmake"
"-DINSTALL_PKGCONFIGDIR=lib/pkgconfig"
"-DINSTALL_LIBDIR=lib"
];
postFixup = ''
moveToOutput bin "$bin"
'';
meta = {
description = "Provides functionality for gaming input devices";
homepage = https://sourceforge.net/projects/libgaminggear/;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2Plus;
};
}

View file

@ -0,0 +1,41 @@
{ stdenv, fetchurl, cmake, pkgconfig, gettext
, dbus, dbus_glib, libgaminggear, libgudev, lua
}:
stdenv.mkDerivation rec {
name = "roccat-tools-${version}";
version = "5.7.0";
src = fetchurl {
url = "mirror://sourceforge/roccat/${name}.tar.bz2";
sha256 = "15gxplcm62167xhk65k8v6gg3j6jr0c5a64wlz72y1vfq0ai7qm6";
};
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 ];
buildInputs = [ dbus dbus_glib libgaminggear libgudev lua ];
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;
};
}

View file

@ -3781,6 +3781,8 @@ with pkgs;
libfann = callPackage ../development/libraries/libfann { };
libgaminggear = callPackage ../development/libraries/libgaminggear { };
libipfix = callPackage ../development/libraries/libipfix { };
libircclient = callPackage ../development/libraries/libircclient { };
@ -14659,6 +14661,8 @@ with pkgs;
payload = "${linux_riscv}/vmlinux";
};
roccat-tools = callPackage ../os-specific/linux/roccat-tools { };
rtkit = callPackage ../os-specific/linux/rtkit { };
rt5677-firmware = callPackage ../os-specific/linux/firmware/rt5677 { };