1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/os-specific/linux/hal/synaptics.nix
Yury G. Kudryashov 3653309cb3 Match capabilities instead of name
Didn't work for ALPS touchpads

svn path=/nixpkgs/trunk/; revision=21043
2010-04-13 06:49:34 +00:00

20 lines
721 B
Nix

{stdenv}:
stdenv.mkDerivation {
name = "hal-info-synaptics";
buildCommand = ''
mkdir -p $out/share/hal/fdi/information/15-osvendor/
cat << EOF > $out/share/hal/fdi/information/15-osvendor/10-x11-synaptics.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.touchpad">
<merge key="input.x11_driver" type="string">synaptics</merge>
<merge key="input.x11_options.AlwaysCore" type="string">true</merge>
<merge key="input.x11_options.Protocol" type="string">event</merge>
</match>
</device>
</deviceinfo>
EOF
'';
}