1 { lib, stdenv, fetchgit, libusb-compat-0_1, libusb1, autoconf, automake, libconfuse, pkg-config
6 version = "2011-12-26";
9 pname = "xburst-tools";
13 url = "git://projects.qi-hardware.com/xburst-tools.git";
14 rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
15 sha256 = "1hzdngs1l5ivvwnxjwzc246am6w1mj1aidcf0awh9yw0crzcjnjr";
22 # Workaround build failure on -fno-common toolchains:
23 # mipsel-unknown-linux-uclibc-ld: boothandler.o:(.bss+0x8): multiple definition of
24 # `start_addr'; main.o:(.bss+0x8): first defined here
25 NIX_CFLAGS_COMPILE_FOR_TARGET = "-fcommon";
27 configureFlags = lib.optionals (gccCross != null) [
29 "CROSS_COMPILE=${gccCross.targetPrefix}"
32 hardeningDisable = [ "pic" "stackprotector" ];
34 # Not to strip cross build binaries (this is for the gcc-cross-wrapper)
35 dontCrossStrip = true;
37 nativeBuildInputs = [ autoconf automake pkg-config ];
38 buildInputs = [ libusb-compat-0_1 libusb1 libconfuse ] ++
39 lib.optional (gccCross != null) gccCross;
42 broken = stdenv.hostPlatform.isDarwin;
43 description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
44 license = lib.licenses.gpl3;
45 homepage = "http://www.linux-mtd.infradead.org/";
47 platforms = lib.platforms.x86_64;