2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchgit, libusb-compat-0_1, libusb1, autoconf, automake, libconfuse, pkg-config
|
2018-05-10 03:40:27 +01:00
|
|
|
, gccCross ? null
|
2017-04-24 15:41:33 +01:00
|
|
|
}:
|
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 {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "xburst-tools";
|
|
|
|
inherit version;
|
2010-07-30 00:25:42 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "git://projects.qi-hardware.com/xburst-tools.git";
|
2012-01-06 21:06:22 +00:00
|
|
|
rev = "c71ce8e15db25fe49ce8702917cb17720882e341";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1hzdngs1l5ivvwnxjwzc246am6w1mj1aidcf0awh9yw0crzcjnjr";
|
2010-07-30 00:25:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
configureFlags = lib.optionals (gccCross != null) [
|
2018-08-03 17:52:40 +01:00
|
|
|
"--enable-firmware"
|
|
|
|
"CROSS_COMPILE=${gccCross.targetPrefix}"
|
|
|
|
];
|
2010-07-30 00:26:07 +01:00
|
|
|
|
2018-04-03 22:32:46 +01:00
|
|
|
hardeningDisable = [ "pic" "stackprotector" ];
|
|
|
|
|
2010-07-30 00:26:07 +01:00
|
|
|
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)
|
|
|
|
dontCrossStrip = true;
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake pkg-config ];
|
2020-04-28 04:29:39 +01:00
|
|
|
buildInputs = [ libusb-compat-0_1 libusb1 libconfuse ] ++
|
2021-01-15 09:19:50 +00:00
|
|
|
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";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.linux-mtd.infradead.org/";
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = lib.platforms.x86_64;
|
2010-07-30 00:25:42 +01:00
|
|
|
};
|
|
|
|
}
|