git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commite4dd2dcad4281958fced19abe189a4ab9926c341 authorBjørn Forsman <bjorn.forsman@gmail.com> dateThu 1 Jan 2015, 19:45 (12 years ago) parente0def54
1 file changed+10
pkgs/development/tools/libsigrok/default.nix+10
pkgs/development/tools/libsigrok/default.nix+10
@@ -10,10 +10,20 @@ stdenv.mkDerivation rec {
1010 sha256 = "0l3h7zvn3w4c1b9dgvl3hirc4aj1csfkgbk87jkpl7bgl03nk4j3";
1111 };
1212
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+
1318 buildInputs = [ pkgconfig libzip glib libusb1 libftdi check libserialport
1419 librevisa
1520 ];
1621
22+ postInstall = ''
23+ mkdir -p "$out/share/sigrok-firmware/"
24+ tar --strip-components=1 -xvf "${firmware}" -C "$out/share/sigrok-firmware/"
25+ '';
26+
1727 meta = with stdenv.lib; {
1828 description = "Core library of the sigrok signal analysis software suite";
1929 homepage = http://sigrok.org/;