lol

libsigrok: install missing firmware files

Without this, hardware that requires firmware (e.g. Saleae Logic) is
unuseable.

Example error that this fixes:

sr: ezusb: Unable to open firmware file /nix/store/rqgppsz3gwy8jailflf3049fzyzrgkdb-libsigrok-0.3.0/share/sigrok-firmware/fx2lafw-saleae-logic.fw for reading: No such file or directory
sr: fx2lafw: Firmware upload failed for device 0.

+10
+10
pkgs/development/tools/libsigrok/default.nix
··· 10 10 sha256 = "0l3h7zvn3w4c1b9dgvl3hirc4aj1csfkgbk87jkpl7bgl03nk4j3"; 11 11 }; 12 12 13 + firmware = fetchurl { 14 + url = "http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-0.1.2.tar.gz"; 15 + sha256 = "0w0w6l015d16181mx8mgyjha4bv3ba7x36p86k9n1x52809433gj"; 16 + }; 17 + 13 18 buildInputs = [ pkgconfig libzip glib libusb1 libftdi check libserialport 14 19 librevisa 15 20 ]; 21 + 22 + postInstall = '' 23 + mkdir -p "$out/share/sigrok-firmware/" 24 + tar --strip-components=1 -xvf "${firmware}" -C "$out/share/sigrok-firmware/" 25 + ''; 16 26 17 27 meta = with stdenv.lib; { 18 28 description = "Core library of the sigrok signal analysis software suite";