b6d6a1c707
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/roccat-tools/versions
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ stdenv, fetchurl, cmake, pkgconfig, gettext
|
|
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "roccat-tools-${version}";
|
|
version = "5.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/roccat/${name}.tar.bz2";
|
|
sha256 = "0fr1ibgsyx756fz43hxq0cik51rkq1ymgimw8mz2d0jy63d7h48q";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|