about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-06-18 08:16:17 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-06-18 08:16:17 +0000
commit034005647b1e0e9d377c2fdc02f7022235288b94 (patch)
treea2ac906bbaeda601b1482cfa46cffac81d2477dc
parentc930debb54a39d5a56c6e3620eb9cd90807abee7 (diff)
downloadnixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar.gz
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar.bz2
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar.lz
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar.xz
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.tar.zst
nixlib-034005647b1e0e9d377c2fdc02f7022235288b94.zip
Adding hplip (HP's driver suite for printers and multi-function devices), which builds
but I have not tried to do anything with it

svn path=/nixpkgs/trunk/; revision=22321
-rw-r--r--pkgs/misc/drivers/hplip/default.nix47
-rw-r--r--pkgs/top-level/all-packages.nix5
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix
new file mode 100644
index 000000000000..bebce948cb02
--- /dev/null
+++ b/pkgs/misc/drivers/hplip/default.nix
@@ -0,0 +1,47 @@
+{stdenv, fetchurl, cups, zlib, libjpeg, libusb, python, saneBackends, dbus, pkgconfig
+, qtSupport ? false, qt4
+}:
+
+stdenv.mkDerivation {
+  name = "hplip-3.10.5";
+
+  src = fetchurl {
+    url = "http://prdownloads.sourceforge.net/hplip/hplip-3.10.5.tar.gz";
+    sha256 = "1lyl9nrdaih64cqw6fa7ivjf7a74bq8zn0gkj1gap47b04my608p";
+  };
+
+  #preBuild=''
+  #  makeFlags="V=1 DISABLE_JBIG=1 CUPSFILTER=$out/lib/cups/filter CUPSPPD=$out/share/cups/model"
+  #'';
+
+  prePatch = ''
+    sed -i s,/etc/sane.d,$out/etc/sane.d/, Makefile.in 
+  '';
+
+  preConfigure = ''
+    export configureFlags="$configureFlags
+      --with-cupsfilterdir=$out/lib/cups/filter
+      --with-cupsbackenddir=$out/lib/cups/backend
+      --with-icondir=$out/share/applications
+      --with-systraydir=$out/xdg/autostart
+      --with-mimedir=$out/etc/cups
+      # Until we have snmp
+      --disable-network-build"
+
+    export makeFlags="
+      halpredir=$out/share/hal/fdi/preprobe/10osvendor
+      hplip_statedir=$out/var
+      rulesdir=$out/etc/udev/rules.d
+      hplip_confdir=$out/etc/hp
+    ";
+  '';
+
+  buildInputs = [libjpeg cups libusb python saneBackends dbus pkgconfig] ++
+    stdenv.lib.optional qtSupport qt4;
+
+  meta = {
+    description = "Print, scan and fax HP drivers for Linux";
+    homepage = http://hplipopensource.com/;
+    license = "free" # MIT/BSD/GPL
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c6154ff0d8ff..21833829b3f3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9676,6 +9676,11 @@ let
     inherit (xlibs) libX11;
   };
 
+  hplip = import ../misc/drivers/hplip {
+    inherit stdenv fetchurl cups zlib libjpeg libusb python saneBackends dbus pkgconfig qt4;
+    qtSupport = true;
+  };
+
   # using the new configuration style proposal which is unstable
   jackaudio = import ../misc/jackaudio {
     inherit composableDerivation