2012-03-10 11:26:55 +00:00
|
|
|
{ stdenv, fetchgit, libusb, libusb1, autoconf, automake, confuse, pkgconfig
|
2010-12-28 17:25:17 +00:00
|
|
|
, gccCross ? null }:
|
2010-07-30 00:25:42 +01:00
|
|
|
|
|
|
|
let
|
2012-01-06 21:06:22 +00:00
|
|
|
version = "2011-12-26";
|
2010-07-30 00:25:42 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xburst-tools-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://projects.qi-hardware.com/xburst-tools.git;
|
2012-01-06 21:06:22 +00:00
|
|
|
rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
|
|
|
|
sha256 = "abe4c4591183f2bc5ca6363451d1cd7d966c080b4f5bfb0fedf7e9a4f70267a4";
|
2010-07-30 00:25:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
2011-04-25 14:24:51 +01:00
|
|
|
configureFlags = if gccCross != null then
|
|
|
|
"--enable-firmware CROSS_COMPILE=${gccCross.crossConfig}-"
|
|
|
|
else "";
|
2010-07-30 00:26:07 +01:00
|
|
|
|
|
|
|
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
|
|
|
|
dontCrossStrip = true;
|
|
|
|
|
2012-03-07 21:38:19 +00:00
|
|
|
buildNativeInputs = [ pkgconfig ];
|
2012-03-10 11:26:55 +00:00
|
|
|
buildInputs = [ libusb libusb1 autoconf automake confuse ] ++
|
2010-07-30 00:26:07 +01:00
|
|
|
stdenv.lib.optional (gccCross != null) gccCross;
|
2010-07-30 00:25:42 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|