lol

stlink: Update to version 1.1.0.

+8 -6
+8 -6
pkgs/development/tools/misc/stlink/default.nix
··· 1 - { stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, libusb1 }: 1 + { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, libusb1 }: 2 2 3 3 # IMPORTANT: You need permissions to access the stlink usb devices. Here are 4 4 # example udev rules for stlink v1 and v2 so you don't need to have root ··· 7 7 # SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE:="0666", SYMLINK+="stlinkv1_%n" 8 8 # SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE:="0666", SYMLINK+="stlinkv2_%n" 9 9 10 + let 11 + version = "1.1.0"; 12 + in 10 13 stdenv.mkDerivation { 11 - name = "stlink-20130306"; 14 + name = "stlink-${version}"; 12 15 13 - src = fetchgit { 14 - url = git://github.com/texane/stlink.git; 15 - rev = "5be889e3feb75fc7f594012c4855b4dc16940050"; 16 - sha256 = "1xbfr1kz4k6hhl0xpqn1vi83fdynjxx3ymn9gb7b0pb7h6ncjcyr"; 16 + src = fetchurl { 17 + url = "https://github.com/texane/stlink/archive/${version}.tar.gz"; 18 + sha256 = "0b38a32ids9dpnz5h892l279fz8y1zzqk1qsnyhl1nm03p7xzi1s"; 17 19 }; 18 20 19 21 buildInputs = [ autoconf automake libtool pkgconfig libusb1 ];