
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-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
97 lines
2.1 KiB
Nix
97 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gi-docgen,
|
|
glib,
|
|
libxml2,
|
|
gobject-introspection,
|
|
|
|
enableGstPlugin ? true,
|
|
enableViewer ? true,
|
|
gst_all_1,
|
|
gtk3,
|
|
wrapGAppsHook3,
|
|
|
|
enableUsb ? true,
|
|
libusb1,
|
|
|
|
enablePacketSocket ? true,
|
|
enableFastHeartbeat ? false,
|
|
}:
|
|
|
|
assert enableGstPlugin -> gst_all_1 != null;
|
|
assert enableViewer -> enableGstPlugin;
|
|
assert enableViewer -> gtk3 != null;
|
|
assert enableViewer -> wrapGAppsHook3 != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aravis";
|
|
version = "0.8.33";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AravisProject";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-D6zcTCaFJxJ2VhhsgEFu5+3Xx1MJov4ryrtA0VkjZlY=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"dev"
|
|
"out"
|
|
"lib"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gi-docgen
|
|
gobject-introspection
|
|
] ++ lib.optional enableViewer wrapGAppsHook3;
|
|
|
|
buildInputs =
|
|
[
|
|
glib
|
|
libxml2
|
|
]
|
|
++ lib.optional enableUsb libusb1
|
|
++ lib.optionals (enableViewer || enableGstPlugin) (
|
|
with gst_all_1;
|
|
[
|
|
gstreamer
|
|
gst-plugins-base
|
|
(gst-plugins-good.override { gtkSupport = true; })
|
|
gst-plugins-bad
|
|
]
|
|
)
|
|
++ lib.optionals (enableViewer) [ gtk3 ];
|
|
|
|
mesonFlags =
|
|
[
|
|
]
|
|
++ lib.optional enableFastHeartbeat "-Dfast-heartbeat=enabled"
|
|
++ lib.optional (!enableGstPlugin) "-Dgst-plugin=disabled"
|
|
++ lib.optional (!enableViewer) "-Dviewer=disabled"
|
|
++ lib.optional (!enableUsb) "-Dviewer=disabled"
|
|
++ lib.optional (!enablePacketSocket) "-Dpacket-socket=disabled";
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Library for video acquisition using GenICam cameras";
|
|
longDescription = ''
|
|
Implements the gigabit ethernet and USB3 protocols used by industrial cameras.
|
|
'';
|
|
# the documentation is the best working homepage that's not the Github repo
|
|
homepage = "https://aravisproject.github.io/docs/aravis-0.8";
|
|
license = lib.licenses.lgpl2;
|
|
maintainers = with lib.maintainers; [ tpw_rules ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|