openocd: install udev rules

So that they can easily be activated in NixOS:

  services.udev.packages = [ pkgs.openocd ];
This commit is contained in:
Bjørn Forsman 2014-03-08 09:30:36 +01:00
parent f0af1e7512
commit 12e00b5eeb

View file

@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
buildInputs = [ libftdi libusb1 ];
postInstall = ''
mkdir -p "$out/etc/udev/rules.d"
ln -s "$out/share/openocd/contrib/openocd.udev" "$out/etc/udev/rules.d/99-openocd.rules"
'';
meta = {
homepage = http://openocd.sourceforge.net/;
description = "OpenOCD, an on-chip debugger";