10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-f5yfAmCpjI4T0XKBiGPQ3JWLuYg+SlrQwYeY/HIrycY=";
36 # Fix pkg-config and ranlib names for cross-compilation
37 substituteInPlace Makefile \
38 --replace "pkg-config" "$PKG_CONFIG" \
39 --replace "ranlib" "$RANLIB"
44 "INSTALL_INCLUDE_DIR=$(dev)/include/gbinder"
45 "INSTALL_PKGCONFIG_DIR=$(dev)/lib/pkgconfig"
54 sed -i -e "s@includedir=/usr@includedir=$dev@g" $dev/lib/pkgconfig/$pname.pc
55 sed -i -e "s@Cflags: @Cflags: $($PKG_CONFIG --cflags libglibutil) @g" $dev/lib/pkgconfig/$pname.pc
59 description = "GLib-style interface to binder";
60 homepage = "https://github.com/mer-hybris/libgbinder";
61 license = lib.licenses.bsd3;
62 platforms = lib.platforms.linux;
63 maintainers = with lib.maintainers; [ ];