mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
111 lines
2.3 KiB
Nix
111 lines
2.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
gtk-doc,
|
|
docbook-xsl-nons,
|
|
docbook_xml_dtd_43,
|
|
help2man,
|
|
glib,
|
|
python3,
|
|
mesonEmulatorHook,
|
|
libgudev,
|
|
bash-completion,
|
|
libmbim,
|
|
libqrtr-glib,
|
|
buildPackages,
|
|
withIntrospection ?
|
|
lib.meta.availableOn stdenv.hostPlatform gobject-introspection
|
|
&& stdenv.hostPlatform.emulatorAvailable buildPackages,
|
|
withMan ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libqmi";
|
|
version = "1.34.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
] ++ lib.optional withIntrospection "devdoc";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "mobile-broadband";
|
|
repo = "libqmi";
|
|
rev = version;
|
|
hash = "sha256-l9ev9ZOWicVNZ/Wj//KNd3NHcefIrLVriqJhEpwWvtQ=";
|
|
};
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
]
|
|
++ lib.optionals withMan [
|
|
help2man
|
|
]
|
|
++ lib.optionals withIntrospection [
|
|
gobject-introspection
|
|
gtk-doc
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_43
|
|
]
|
|
++ lib.optionals (withIntrospection && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
bash-completion
|
|
libmbim
|
|
]
|
|
++ lib.optionals withIntrospection [
|
|
libgudev
|
|
];
|
|
|
|
propagatedBuildInputs =
|
|
[
|
|
glib
|
|
]
|
|
++ lib.optionals withIntrospection [
|
|
libqrtr-glib
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dudevdir=${placeholder "out"}/lib/udev"
|
|
(lib.mesonBool "gtk_doc" withIntrospection)
|
|
(lib.mesonBool "introspection" withIntrospection)
|
|
(lib.mesonBool "man" withMan)
|
|
(lib.mesonBool "qrtr" withIntrospection)
|
|
(lib.mesonBool "udev" withIntrospection)
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
build-aux/qmi-codegen/qmi-codegen
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
|
|
description = "Modem protocol helper library";
|
|
maintainers = teams.freedesktop.members;
|
|
platforms = platforms.linux;
|
|
license = with licenses; [
|
|
# Library
|
|
lgpl2Plus
|
|
# Tools
|
|
gpl2Plus
|
|
];
|
|
changelog = "https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/${version}/NEWS";
|
|
};
|
|
}
|