diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2006-01-31 12:59:06 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2006-01-31 12:59:06 +0000 |
commit | 3ce62c7a5efd38a3240fdc90c7e018a2eb72202f (patch) | |
tree | ef25f752b59f18af290bd20d131e2918183b7848 /pkgs | |
parent | 082d8e67967f8dc4b7a1c23073b67690ef716430 (diff) |
add hotplugging stuff conditionally
svn path=/nixpkgs/trunk/; revision=4633
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/misc/sane-backends/builder.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/misc/sane-backends/builder.sh b/pkgs/misc/sane-backends/builder.sh index 0b61d421abc42..4ecd717f0a43f 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 |