2021-10-04 12:37:57 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, glib, libglibutil }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libgbinder";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.1.14";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mer-hybris";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-WYVFbp5aEqdxZQYSJ96Mi7ruLu4TkDbw/NCV8roPN28=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libglibutil
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"LIBDIR=$(out)/lib"
|
|
|
|
"INSTALL_INCLUDE_DIR=$(dev)/include/gbinder"
|
|
|
|
"INSTALL_PKGCONFIG_DIR=$(dev)/lib/pkgconfig"
|
|
|
|
];
|
|
|
|
|
|
|
|
installTargets = [ "install" "install-dev" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i -e "s@includedir=/usr@includedir=$dev@g" $dev/lib/pkgconfig/$pname.pc
|
|
|
|
sed -i -e "s@Cflags: @Cflags: $($PKG_CONFIG --cflags libglibutil) @g" $dev/lib/pkgconfig/$pname.pc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GLib-style interface to binder";
|
|
|
|
homepage = "https://github.com/mer-hybris/libgbinder";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mcaju ];
|
|
|
|
};
|
|
|
|
}
|