tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sane: remove ? null from inputs, cleanup meta
Sandro Jäckel
4 years ago
e97c0f62
9480c98c
+8
-9
1 changed file
expand all
collapse all
unified
split
pkgs
applications
graphics
sane
xsane.nix
+8
-9
pkgs/applications/graphics/sane/xsane.nix
···
7
7
, gtk2
8
8
, pkg-config
9
9
, libpng
10
10
-
, libusb-compat-0_1 ? null
10
10
+
, libusb-compat-0_1
11
11
, gimpSupport ? false
12
12
-
, gimp ? null
12
12
+
, gimp
13
13
}:
14
14
-
15
15
-
assert gimpSupport -> gimp != null;
16
14
17
15
stdenv.mkDerivation rec {
18
16
pname = "xsane";
···
29
27
'';
30
28
31
29
nativeBuildInputs = [ pkg-config ];
32
32
-
buildInputs = [ libpng sane-backends sane-frontends libX11 gtk2 ]
33
33
-
++ (if libusb-compat-0_1 != null then [ libusb-compat-0_1 ] else [ ])
30
30
+
31
31
+
buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ]
34
32
++ lib.optional gimpSupport gimp;
35
33
36
36
-
meta = {
34
34
+
meta = with lib; {
37
35
homepage = "http://www.sane-project.org/";
38
36
description = "Graphical scanning frontend for sane";
39
39
-
license = lib.licenses.gpl2Plus;
40
40
-
platforms = with lib.platforms; linux;
37
37
+
license = licenses.gpl2Plus;
38
38
+
platforms = platforms.linux;
39
39
+
maintainers = with maintainers; [ ];
41
40
};
42
41
}