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
3 changed files with 85 additions and 0 deletions
@@ -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;
};
}