libgpiod: add patch fixing cross-compilation

Fixes "undefined reference to `rpl_malloc'".
This commit is contained in:
Richard Marko
2020-05-02 18:05:07 +02:00
parent 8b006cd3bf
commit b920bf3d61
2 changed files with 37 additions and 0 deletions
@@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "14iv8iwyvfznyifhkqz1bjh24dvb03gmpjn8v3fs6h734l93vvw5";
};
patches = [
# cross compiling fix
# https://github.com/brgl/libgpiod/pull/45
./0001-Drop-AC_FUNC_MALLOC-and-_REALLOC-and-check-for-them-.patch
];
buildInputs = [ kmod ] ++ lib.optionals enablePython [ python3 ncurses ];
nativeBuildInputs = [
autoconf-archive