uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
76
pkgs/development/libraries/aravis/default.nix
Normal file
76
pkgs/development/libraries/aravis/default.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gi-docgen
|
||||
, glib
|
||||
, libxml2
|
||||
, gobject-introspection
|
||||
|
||||
, enableGstPlugin ? true
|
||||
, enableViewer ? true
|
||||
, gst_all_1
|
||||
, gtk3
|
||||
, wrapGAppsHook
|
||||
|
||||
, enableUsb ? true
|
||||
, libusb1
|
||||
|
||||
, enablePacketSocket ? true
|
||||
, enableFastHeartbeat ? false
|
||||
}:
|
||||
|
||||
assert enableGstPlugin -> gst_all_1 != null;
|
||||
assert enableViewer -> enableGstPlugin;
|
||||
assert enableViewer -> gtk3 != null;
|
||||
assert enableViewer -> wrapGAppsHook != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "aravis";
|
||||
version = "0.8.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AravisProject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-z4fuo8tVyHf2Bw73ZfAEpAYmzbr9UIzEWPC5f95wnD8=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" "lib" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gi-docgen
|
||||
] ++ lib.optional enableViewer wrapGAppsHook;
|
||||
|
||||
buildInputs =
|
||||
[ glib libxml2 gobject-introspection ]
|
||||
++ 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue