nixpkgs/pkgs/development/libraries/libqrtr-glib/default.nix
Alyssa Ross 61f9920880
libqrtr-glib: remove obsolete gobject-introspection build input
Since b2f9cd34e7 ("gobject-introspection: use wrapper.nix for the
native package too so we can propagate the dev output"),
gobject-introspection doesn't need to be included in buildInputs when
it's in nativeBuildInputs, as it's propagated from the setup hook.

Removing the build input fixes evaluation in buildPackages when
cross-compiling to platforms that gobject-introspection is unsupported
on, like ghcjs.

Tested building natively on x86_64-linux, in
pkgsCross.aarch64-multiplatform, and in pkgsCross.ghcjs.buildPackages.
2023-02-04 18:45:18 +00:00

59 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gobject-introspection
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, glib
}:
stdenv.mkDerivation rec {
pname = "libqrtr-glib";
version = "1.2.2";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "mobile-broadband";
repo = "libqrtr-glib";
rev = version;
sha256 = "kHLrOXN6wgBrHqipo2KfAM5YejS0/bp7ziBSpt0s1i0=";
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [
glib
];
meta = with lib; {
homepage = "https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib";
description = "Qualcomm IPC Router protocol helper library";
maintainers = teams.freedesktop.members;
platforms = platforms.linux;
license = licenses.lgpl2Plus;
};
}