File tree 1 file changed +8
-3
lines changed
pkgs/development/tools/misc/openocd
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
stdenv . mkDerivation rec {
4
4
name = "openocd-${ version } " ;
5
- version = "0.9 .0" ;
5
+ version = "0.10 .0" ;
6
6
7
7
src = fetchurl {
8
8
url = "mirror://sourceforge/openocd/openocd-${ version } .tar.bz2" ;
9
- sha256 = "0hzlnm19c4b35vsxs6ik94xbigv3ykdgr8gzrdir6sqmkan44w43 " ;
9
+ sha256 = "1bhn2c85rdz4gf23358kg050xlzh7yxbbwmqp24c0akmh3bff4kk " ;
10
10
} ;
11
11
12
12
buildInputs = [ libftdi libusb1 pkgconfig hidapi ] ;
@@ -26,7 +26,12 @@ stdenv.mkDerivation rec {
26
26
27
27
postInstall = ''
28
28
mkdir -p "$out/etc/udev/rules.d"
29
- ln -s "$out/share/openocd/contrib/99-openocd.rules" "$out/etc/udev/rules.d/99-openocd.rules"
29
+ rules="$out/share/openocd/contrib/60-openocd.rules"
30
+ if [ ! -f "$rules" ]; then
31
+ echo "$rules is missing, must update the Nix file."
32
+ exit 1
33
+ fi
34
+ ln -s "$rules" "$out/etc/udev/rules.d/"
30
35
'' ;
31
36
32
37
meta = with stdenv . lib ; {
You can’t perform that action at this time.
0 commit comments