nixpkgs/pkgs/tools/misc/xburst-tools/default.nix
Lluís Batlle i Rossell 01c5028c7c Updating xburst-tools (blind commit, I did not try to build them)
svn path=/nixpkgs/trunk/; revision=31377
2012-01-06 21:06:22 +00:00

38 lines
1.0 KiB
Nix

{ stdenv, fetchgit, libusb, autoconf, automake, confuse
, gccCross ? null }:
let
version = "2011-12-26";
in
stdenv.mkDerivation {
name = "xburst-tools-${version}";
src = fetchgit {
url = git://projects.qi-hardware.com/xburst-tools.git;
rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
sha256 = "abe4c4591183f2bc5ca6363451d1cd7d966c080b4f5bfb0fedf7e9a4f70267a4";
};
preConfigure = ''
sh autogen.sh
'';
configureFlags = if gccCross != null then
"--enable-firmware CROSS_COMPILE=${gccCross.crossConfig}-"
else "";
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
dontCrossStrip = true;
buildInputs = [ libusb autoconf automake confuse ] ++
stdenv.lib.optional (gccCross != null) gccCross;
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;
};
}