aravis: remove useless nulls
This commit is contained in:
parent
3c2f3dff8d
commit
fe7a2600ac
1 changed files with 7 additions and 12 deletions
|
@ -1,13 +1,13 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk-doc, intltool
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk-doc, intltool
|
||||||
, audit, glib, libusb1, libxml2
|
, audit, glib, libusb1, libxml2
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, gstreamer ? null
|
, gstreamer
|
||||||
, gst-plugins-base ? null
|
, gst-plugins-base
|
||||||
, gst-plugins-good ? null
|
, gst-plugins-good
|
||||||
, gst-plugins-bad ? null
|
, gst-plugins-bad
|
||||||
, libnotify ? null
|
, libnotify
|
||||||
, gnome ? null
|
, gnome
|
||||||
, gtk3 ? null
|
, gtk3
|
||||||
, enableUsb ? true
|
, enableUsb ? true
|
||||||
, enablePacketSocket ? true
|
, enablePacketSocket ? true
|
||||||
, enableViewer ? true
|
, enableViewer ? true
|
||||||
|
@ -23,11 +23,7 @@ let
|
||||||
(pkg: pkg != null && lib.versionAtLeast (lib.getVersion pkg) "1.0")
|
(pkg: pkg != null && lib.versionAtLeast (lib.getVersion pkg) "1.0")
|
||||||
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
|
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
|
||||||
in
|
in
|
||||||
assert enableGstPlugin -> lib.all (pkg: pkg != null) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
|
|
||||||
assert enableViewer -> enableGstPlugin;
|
assert enableViewer -> enableGstPlugin;
|
||||||
assert enableViewer -> libnotify != null;
|
|
||||||
assert enableViewer -> gnome != null;
|
|
||||||
assert enableViewer -> gtk3 != null;
|
|
||||||
assert enableViewer -> gstreamerAtLeastVersion1;
|
assert enableViewer -> gstreamerAtLeastVersion1;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -87,4 +83,3 @@ in
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue