mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, glib, libglibutil }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgbinder";
|
|
version = "1.1.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mer-hybris";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "03p5ala9lnfcizh7832ax5phdvfzrdxw6acw8zib8wj0s133wyhb";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|