11 stdenv.mkDerivation rec {
16 sha256 = "15pgqgyw46yd2i367ax9940pfyvinyw2m8apmwhrn0ix5nywa7ni";
17 url = "mirror://sourceforge/swingsane/swingsane-${version}-bin.zip";
20 nativeBuildInputs = [ unzip ];
29 exec ${jre}/bin/java -jar $out/share/java/swingsane/swingsane-${version}.jar "$@"
32 desktopItem = makeDesktopItem {
36 desktopName = "SwingSane";
37 genericName = "Scan from local or remote SANE servers";
38 comment = meta.description;
39 categories = [ "Office" ];
44 install -v -m 755 -d $out/share/java/swingsane/
45 install -v -m 644 *.jar $out/share/java/swingsane/
47 echo "${execWrapper}" > swingsane
48 install -v -D -m 755 swingsane $out/bin/swingsane
50 unzip -j swingsane-${version}.jar "com/swingsane/images/*.png"
51 install -v -D -m 644 swingsane_512x512.png $out/share/pixmaps/swingsane.png
53 cp -v -r ${desktopItem}/share/applications $out/share
57 description = "Java GUI for SANE scanner servers (saned)";
59 SwingSane is a powerful, cross platform, open source Java front-end for
60 using both local and remote Scanner Access Now Easy (SANE) servers.
61 The most powerful feature is its ability to query back-ends for scanner
62 specific options which can be set by the user as a scanner profile.
63 It also has support for authentication, mutlicast DNS discovery,
64 simultaneous scan jobs, image transformation jobs (deskew, binarize,
65 crop, etc), PDF and PNG output.
67 homepage = "http://swingsane.com/";
68 sourceProvenance = with sourceTypes; [ binaryBytecode ];
69 license = licenses.asl20;
70 platforms = platforms.all;
71 mainProgram = "swingsane";