xbursttools: Fix eval at least so tests pass

This commit is contained in:
John Ericson 2017-04-24 10:41:33 -04:00 committed by John Ericson
parent fc42ec0a5c
commit f55ccbb60f
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,6 @@
{ stdenv, fetchgit, libusb, libusb1, autoconf, automake, confuse, pkgconfig
, gccCross ? null }:
, gccCross ? null, crossPrefix
}:
let
version = "2011-12-26";
@ -18,7 +19,7 @@ stdenv.mkDerivation {
'';
configureFlags = if gccCross != null then
"--enable-firmware CROSS_COMPILE=${gccCross.crossConfig}-"
"--enable-firmware CROSS_COMPILE=${crossPrefix}-"
else "";
# Not to strip cross build binaries (this is for the gcc-cross-wrapper)

View File

@ -4816,15 +4816,16 @@ with pkgs;
x11_ssh_askpass = callPackage ../tools/networking/x11-ssh-askpass { };
xbursttools = assert stdenv ? glibc; callPackage ../tools/misc/xburst-tools {
xbursttools = assert stdenv ? glibc; callPackage ../tools/misc/xburst-tools rec {
# It needs a cross compiler for mipsel to build the firmware it will
# load into the Ben Nanonote
crossPrefix = "mipsel-unknown-linux";
gccCross =
let
pkgsCross = nixpkgsFun {
# Ben Nanonote system
crossSystem = {
config = "mipsel-unknown-linux";
config = crossPrefix;
bigEndian = true;
arch = "mips";
float = "soft";
@ -4843,7 +4844,7 @@ with pkgs;
};
};
in
pkgsCross.gccCrossStageStatic;
pkgsCross.buildPackages.gccCrossStageStatic;
};
xclip = callPackage ../tools/misc/xclip { };