uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/os-specific/linux/roccat-tools/default.nix
Normal file
49
pkgs/os-specific/linux/roccat-tools/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchurl, cmake, pkg-config, gettext
|
||||
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
||||
, harfbuzz
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "roccat-tools";
|
||||
version = "5.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/roccat/${pname}-${version}.tar.bz2";
|
||||
sha256 = "12j02rzbz3iqxprz8cj4kcfcdgnqlva142ci177axqmckcq6crvg";
|
||||
};
|
||||
|
||||
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 pkg-config gettext ];
|
||||
buildInputs = [ dbus dbus-glib libgaminggear libgudev lua ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUDEVDIR=\${out}/lib/udev/rules.d"
|
||||
"-DCMAKE_MODULE_PATH=${libgaminggear.dev}/lib/cmake"
|
||||
"-DWITH_LUA=${lua.luaversion}"
|
||||
"-DLIBDIR=lib"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${harfbuzz.dev}/include/harfbuzz"
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: ryos_talk.c.o:(.bss+0x0): multiple definition of `RyosWriteCheckWait';
|
||||
# ryos_custom_lights.c.o:(.bss+0x0): first defined here
|
||||
"-fcommon"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Tools to configure ROCCAT devices";
|
||||
homepage = "http://roccat.sourceforge.net/";
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue