about summary refs log tree commit diff
path: root/pkgs/applications/graphics/sane
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2022-03-27 18:07:48 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2022-04-21 22:01:19 -0400
commitf6999e0cc5d3b5b970bfa2fdc52e9c9fbcde2091 (patch)
tree91b753dd119f4abe190280c1c30e55c7b120bc41 /pkgs/applications/graphics/sane
parent93e835bd92f18bbdb13ef4f3cb1cc64f1415bffb (diff)
sane-backends: fix build on Darwin
Diffstat (limited to 'pkgs/applications/graphics/sane')
-rw-r--r--pkgs/applications/graphics/sane/backends/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/sane/backends/default.nix b/pkgs/applications/graphics/sane/backends/default.nix
index 93a7d75ce45a5..d3c5b1c0b75f2 100644
--- a/pkgs/applications/graphics/sane/backends/default.nix
+++ b/pkgs/applications/graphics/sane/backends/default.nix
@@ -40,18 +40,19 @@ stdenv.mkDerivation {
   buildInputs = [
     avahi
     libgphoto2
-    libieee1284
     libjpeg
     libpng
     libtiff
     libusb1
-    libv4l
-    net-snmp
     curl
-    systemd
     libxml2
     poppler
     gawk
+  ] ++ lib.optionals stdenv.isLinux [
+    libieee1284
+    libv4l
+    net-snmp
+    systemd
   ];
 
   enableParallelBuilding = true;
@@ -113,6 +114,6 @@ stdenv.mkDerivation {
     '';
     homepage = "http://www.sane-project.org/";
     license = licenses.gpl2Plus;
-    platforms = platforms.linux;
+    platforms = platforms.linux ++ platforms.darwin;
   };
 }