sane: remove ? null from inputs, cleanup meta

This commit is contained in:
Sandro Jäckel 2021-11-09 10:20:26 +01:00
parent 9480c98ce1
commit e97c0f6281
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -7,13 +7,11 @@
, gtk2
, pkg-config
, libpng
, libusb-compat-0_1 ? null
, libusb-compat-0_1
, gimpSupport ? false
, gimp ? null
, gimp
}:
assert gimpSupport -> gimp != null;
stdenv.mkDerivation rec {
pname = "xsane";
version = "0.999";
@ -29,14 +27,15 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpng sane-backends sane-frontends libX11 gtk2 ]
++ (if libusb-compat-0_1 != null then [ libusb-compat-0_1 ] else [ ])
buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ]
++ lib.optional gimpSupport gimp;
meta = {
meta = with lib; {
homepage = "http://www.sane-project.org/";
description = "Graphical scanning frontend for sane";
license = lib.licenses.gpl2Plus;
platforms = with lib.platforms; linux;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}