diff --git a/pkgs/misc/sane-backends/builder.sh b/pkgs/misc/sane-backends/builder.sh index 0b61d421abc4..4ecd717f0a43 100644 --- a/pkgs/misc/sane-backends/builder.sh +++ b/pkgs/misc/sane-backends/builder.sh @@ -1,3 +1,12 @@ source $stdenv/setup +postInstall() { + if test $hotplugSupport = "1" ; then + ensureDir $out/etc/hotplug/usb/ + cp tools/hotplug/* $out/etc/hotplug/usb/ + fi +} + +postInstall=postInstall + genericBuild