Skip to content

Commit d3c7a94

Browse files
committedFeb 6, 2017
openocd: 0.9.0 -> 0.10.0
Announcement: http://openocd.org/2017/01/openocd-0-10-0-release-is-out/ The udev rules were renamed. Add code to automatically detect renames in the future.
1 parent 82c1d98 commit d3c7a94

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎pkgs/development/tools/misc/openocd/default.nix

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
stdenv.mkDerivation rec {
44
name = "openocd-${version}";
5-
version = "0.9.0";
5+
version = "0.10.0";
66

77
src = fetchurl {
88
url = "mirror://sourceforge/openocd/openocd-${version}.tar.bz2";
9-
sha256 = "0hzlnm19c4b35vsxs6ik94xbigv3ykdgr8gzrdir6sqmkan44w43";
9+
sha256 = "1bhn2c85rdz4gf23358kg050xlzh7yxbbwmqp24c0akmh3bff4kk";
1010
};
1111

1212
buildInputs = [ libftdi libusb1 pkgconfig hidapi ];
@@ -26,7 +26,12 @@ stdenv.mkDerivation rec {
2626

2727
postInstall = ''
2828
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/"
3035
'';
3136

3237
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)
Please sign in to comment.