git.iko.soy/typeable/nixpkgs
on master help sign in
xbursttools: Fix eval at least so tests pass
commitf55ccbb60fb1022ce9d27595fc8200dd1d0da6db authorJohn Ericson <Ericson2314@Yahoo.com> dateMon 24 Apr 2017, 10:41 (10 years ago) parentfc42ec0
2 files changed+7−5
pkgs/tools/misc/xburst-tools/default.nix+3−2 pkgs/top-level/all-packages.nix+4−3
pkgs/tools/misc/xburst-tools/default.nix+3−2
@@ -1,5 +1,6 @@
11{ stdenv, fetchgit, libusb, libusb1, autoconf, automake, confuse, pkgconfig
2−, gccCross ? null }:
2+, gccCross ? null, crossPrefix
3+}:
34
45let
56 version = "2011-12-26";
@@ -18,7 +19,7 @@ stdenv.mkDerivation {
1819 '';
1920
2021 configureFlags = if gccCross != null then
21− "--enable-firmware CROSS_COMPILE=${gccCross.crossConfig}-"
22+ "--enable-firmware CROSS_COMPILE=${crossPrefix}-"
2223 else "";
2324
2425 # Not to strip cross build binaries (this is for the gcc-cross-wrapper)
pkgs/top-level/all-packages.nix+4−3
@@ -4816,15 +4816,16 @@ with pkgs;
48164816
48174817 x11_ssh_askpass = callPackage ../tools/networking/x11-ssh-askpass { };
48184818
4819− xbursttools = assert stdenv ? glibc; callPackage ../tools/misc/xburst-tools {
4819+ xbursttools = assert stdenv ? glibc; callPackage ../tools/misc/xburst-tools rec {
48204820 # It needs a cross compiler for mipsel to build the firmware it will
48214821 # load into the Ben Nanonote
4822+ crossPrefix = "mipsel-unknown-linux";
48224823 gccCross =
48234824 let
48244825 pkgsCross = nixpkgsFun {
48254826 # Ben Nanonote system
48264827 crossSystem = {
4827− config = "mipsel-unknown-linux";
4828+ config = crossPrefix;
48284829 bigEndian = true;
48294830 arch = "mips";
48304831 float = "soft";
@@ -4843,7 +4844,7 @@ with pkgs;
48434844 };
48444845 };
48454846 in
4846− pkgsCross.gccCrossStageStatic;
4847+ pkgsCross.buildPackages.gccCrossStageStatic;
48474848 };
48484849
48494850 xclip = callPackage ../tools/misc/xclip { };