sane: remove ? null from inputs, cleanup meta
This commit is contained in:
parent
9480c98ce1
commit
e97c0f6281
1 changed files with 8 additions and 9 deletions
|
@ -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; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue