From 3ce62c7a5efd38a3240fdc90c7e018a2eb72202f Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 31 Jan 2006 12:59:06 +0000 Subject: [PATCH] add hotplugging stuff conditionally svn path=/nixpkgs/trunk/; revision=4633 --- pkgs/misc/sane-backends/builder.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/misc/sane-backends/builder.sh b/pkgs/misc/sane-backends/builder.sh index 0b61d421abc..4ecd717f0a4 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