summary refs log tree commit diff
path: root/pkgs/tools/misc/xburst-tools
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-07-29 23:25:42 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-07-29 23:25:42 +0000
commit537ad15e86fcf437432bb98c99bd942f0406aebc (patch)
tree233a4cedc24bf104cda01ea91469f12bc88b53d9 /pkgs/tools/misc/xburst-tools
parent2423a7c821da553bb52ab6e25196d98f192ef503 (diff)
downloadnixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar.gz
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar.bz2
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar.lz
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar.xz
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.tar.zst
nixlib-537ad15e86fcf437432bb98c99bd942f0406aebc.zip
Adding xburst-tools to manage the USB_BOOT mode of the Ben Nanonote (reflashing, ...)
I add the 'confuse' library as a side effect.

svn path=/nixpkgs/trunk/; revision=22817
Diffstat (limited to 'pkgs/tools/misc/xburst-tools')
-rw-r--r--pkgs/tools/misc/xburst-tools/default.nix30
-rw-r--r--pkgs/tools/misc/xburst-tools/gcc-4.4.patch12
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/misc/xburst-tools/default.nix b/pkgs/tools/misc/xburst-tools/default.nix
new file mode 100644
index 000000000000..4f4de602c6cc
--- /dev/null
+++ b/pkgs/tools/misc/xburst-tools/default.nix
@@ -0,0 +1,30 @@
+{stdenv, fetchgit, libusb, autoconf, automake, confuse}:
+
+let
+  version = "2010-07-29";
+in
+stdenv.mkDerivation {
+  name = "xburst-tools-${version}";
+
+  patches = [ ./gcc-4.4.patch ];
+
+  src = fetchgit {
+    url = git://projects.qi-hardware.com/xburst-tools.git;
+    rev = "00be212db22643ad602eaf60b30eb943f119e78d";
+    sha256 = "66ea1a81b71bad599d76691f07a986f9bb2ccecf397e8486b661d8baace3460e";
+  };
+
+  preConfigure = ''
+    sh autogen.sh
+  '';
+
+  buildInputs = [ libusb autoconf automake confuse ];
+
+  meta = {
+    description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
+    license = "GPLv3";
+    homepage = http://www.linux-mtd.infradead.org/;
+    maintainers = with stdenv.lib.maintainers; [viric];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}
diff --git a/pkgs/tools/misc/xburst-tools/gcc-4.4.patch b/pkgs/tools/misc/xburst-tools/gcc-4.4.patch
new file mode 100644
index 000000000000..79b7be3d34fa
--- /dev/null
+++ b/pkgs/tools/misc/xburst-tools/gcc-4.4.patch
@@ -0,0 +1,12 @@
+diff --git a/xbboot/host-app/host_main.c b/xbboot/host-app/host_main.c
+index 8835869..0d6fcc0 100644
+--- a/xbboot/host-app/host_main.c
++++ b/xbboot/host-app/host_main.c
+@@ -9,6 +9,7 @@
+ //
+ 
+ #include <stdio.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <usb.h>
+ #include <time.h>