20 , ... } @ args: stdenv.mkDerivation rec {
21 pname = "barebox-${defconfig}";
23 version = "2020.12.0";
26 url = "https://www.barebox.org/download/barebox-${version}.tar.bz2";
27 sha256 = "06vsd95ihaa2nywpqy6k0c7xwk2pzws4yvbp328yd2pfiigachrv";
43 depsBuildBuild = [ buildPackages.stdenv.cc ];
45 hardeningDisable = [ "all" ];
49 "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
63 mkdir -p ${installDir}
64 cp ${lib.concatStringsSep " " filesToInstall} ${installDir}
69 enableParallelBuilding = true;
74 homepage = "https://www.barebox.org";
75 description = "The Swiss Army Knive for bare metal";
76 license = licenses.gpl2;
77 maintainers = with maintainers; [ emantor ];
79 } // removeAttrs args [ "extraMeta" ];
84 bareboxTools = buildBarebox {
85 defconfig = "hosttools_defconfig";
86 installDir = "$out/bin";
87 extraMeta.platforms = lib.platforms.linux;
90 "scripts/imx/imx-usb-loader"
91 "scripts/omap4_usbboot"
92 "scripts/omap3-usb-loader"