2018-11-25 17:20:42 +00:00
|
|
|
{ stdenv, fetchgit, libusb, libusb1, autoconf, automake, libconfuse, pkgconfig
|
2018-05-10 02:40:27 +00:00
|
|
|
, gccCross ? null
|
2017-04-24 14:41:33 +00:00
|
|
|
}:
|
2010-07-29 23:25:42 +00:00
|
|
|
|
|
|
|
let
|
2012-01-06 21:06:22 +00:00
|
|
|
version = "2011-12-26";
|
2010-07-29 23:25:42 +00: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";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "1hzdngs1l5ivvwnxjwzc246am6w1mj1aidcf0awh9yw0crzcjnjr";
|
2010-07-29 23:25:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
2018-08-03 16:52:40 +00:00
|
|
|
configureFlags = stdenv.lib.optionals (gccCross != null) [
|
|
|
|
"--enable-firmware"
|
|
|
|
"CROSS_COMPILE=${gccCross.targetPrefix}"
|
|
|
|
];
|
2010-07-29 23:26:07 +00:00
|
|
|
|
2018-04-03 21:32:46 +00:00
|
|
|
hardeningDisable = [ "pic" "stackprotector" ];
|
|
|
|
|
2010-07-29 23:26:07 +00:00
|
|
|
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
|
|
|
|
dontCrossStrip = true;
|
|
|
|
|
2018-11-25 17:20:42 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
|
|
|
buildInputs = [ libusb libusb1 libconfuse ] ++
|
2010-07-29 23:26:07 +00:00
|
|
|
stdenv.lib.optional (gccCross != null) gccCross;
|
2010-07-29 23:25:42 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qi tools to access the Ben Nanonote USB_BOOT mode";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2010-07-29 23:25:42 +00:00
|
|
|
homepage = http://www.linux-mtd.infradead.org/;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2016-09-13 08:55:08 +00:00
|
|
|
platforms = stdenv.lib.platforms.x86_64;
|
2010-07-29 23:25:42 +00:00
|
|
|
};
|
|
|
|
}
|