coreboot-toolchain: Use sources.nix generated by update.sh
Use sources.nix for all source files (except coreboot) generated by update.sh. Signed-off-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
28383a922e
commit
0b2b0331f0
2 changed files with 69 additions and 73 deletions
|
@ -1,88 +1,33 @@
|
||||||
{ lib, stdenvNoCC, fetchurl, fetchgit,
|
{ callPackage, fetchgit, lib, stdenvNoCC
|
||||||
gnumake, patch, zlib, git, bison,
|
, bison, curl, git, perl
|
||||||
flex, gnat11, curl, perl
|
, flex, gnat11, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenvNoCC.mkDerivation rec {
|
||||||
version_coreboot = "4.14";
|
pname = "coreboot-toolchain";
|
||||||
|
version = "4.14";
|
||||||
|
|
||||||
version_gmp = "6.2.0";
|
src = fetchgit {
|
||||||
version_mpfr = "4.1.0";
|
|
||||||
version_mpc = "1.2.0";
|
|
||||||
version_gcc = "8.3.0";
|
|
||||||
version_binutils = "2.35.1";
|
|
||||||
version_acpica = "20200925";
|
|
||||||
version_nasm = "2.15.05";
|
|
||||||
|
|
||||||
tar_name_gmp = "gmp-${version_gmp}.tar.xz";
|
|
||||||
tar_gmp = fetchurl {
|
|
||||||
url = "https://ftpmirror.gnu.org/gmp/${tar_name_gmp}";
|
|
||||||
sha256 = "09hmg8k63mbfrx1x3yy6y1yzbbq85kw5avbibhcgrg9z3ganr3i5";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_mpfr = "mpfr-${version_mpfr}.tar.xz";
|
|
||||||
tar_mpfr = fetchurl {
|
|
||||||
url = "https://ftpmirror.gnu.org/mpfr/${tar_name_mpfr}";
|
|
||||||
sha256 = "0zwaanakrqjf84lfr5hfsdr7hncwv9wj0mchlr7cmxigfgqs760c";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_mpc = "mpc-${version_mpc}.tar.gz";
|
|
||||||
tar_mpc = fetchurl {
|
|
||||||
url = "https://ftpmirror.gnu.org/mpc/${tar_name_mpc}";
|
|
||||||
sha256 = "19pxx3gwhwl588v496g3aylhcw91z1dk1d5x3a8ik71sancjs3z9";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_gcc = "gcc-${version_gcc}.tar.xz";
|
|
||||||
tar_gcc = fetchurl {
|
|
||||||
url = "https://ftpmirror.gnu.org/gcc/gcc-${version_gcc}/${tar_name_gcc}";
|
|
||||||
sha256 = "0b3xv411xhlnjmin2979nxcbnidgvzqdf4nbhix99x60dkzavfk4";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_binutils = "binutils-${version_binutils}.tar.xz";
|
|
||||||
tar_binutils = fetchurl {
|
|
||||||
url = "https://ftpmirror.gnu.org/binutils/${tar_name_binutils}";
|
|
||||||
sha256 = "01w6xvfy7sjpw8j08k111bnkl27j760bdsi0wjvq44ghkgdr3v9w";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_acpica = "acpica-unix2-${version_acpica}.tar.gz";
|
|
||||||
tar_acpica = fetchurl {
|
|
||||||
url = "https://acpica.org/sites/acpica/files/${tar_name_acpica}";
|
|
||||||
sha256 = "18n6129fkgj85piid7v4zxxksv3h0amqp4p977vcl9xg3bq0zd2w";
|
|
||||||
};
|
|
||||||
|
|
||||||
tar_name_nasm = "nasm-${version_nasm}.tar.bz2";
|
|
||||||
tar_nasm = fetchurl {
|
|
||||||
url = "https://www.nasm.us/pub/nasm/releasebuilds/${version_nasm}/${tar_name_nasm}";
|
|
||||||
sha256 = "1l1gxs5ncdbgz91lsl4y7w5aapask3w02q9inayb2m5bwlwq6jrw";
|
|
||||||
};
|
|
||||||
|
|
||||||
coreboot = fetchgit {
|
|
||||||
url = "https://review.coreboot.org/coreboot";
|
url = "https://review.coreboot.org/coreboot";
|
||||||
rev = "${version_coreboot}";
|
rev = "${version}";
|
||||||
sha256 = "00xr74yc0kj9rrqa1a8b7bih865qlp9i4zs67ysavkfrjrwwssxm";
|
sha256 = "00xr74yc0kj9rrqa1a8b7bih865qlp9i4zs67ysavkfrjrwwssxm";
|
||||||
};
|
};
|
||||||
in stdenvNoCC.mkDerivation rec {
|
|
||||||
pname = "coreboot-toolchain";
|
|
||||||
version = version_coreboot;
|
|
||||||
src = coreboot;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ perl curl gnumake git bison ];
|
nativeBuildInputs = [ bison curl git perl ];
|
||||||
|
buildInputs = [ flex gnat11 zlib ];
|
||||||
buildInputs = [ gnat11 flex zlib ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontInstall = true;
|
dontInstall = true;
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
mkdir util/crossgcc/tarballs
|
mkdir -p util/crossgcc/tarballs
|
||||||
ln -s ${tar_gmp} util/crossgcc/tarballs/${tar_name_gmp}
|
|
||||||
ln -s ${tar_mpfr} util/crossgcc/tarballs/${tar_name_mpfr}
|
${lib.concatMapStringsSep "\n" (
|
||||||
ln -s ${tar_mpc} util/crossgcc/tarballs/${tar_name_mpc}
|
file: "ln -s ${file.archive} util/crossgcc/tarballs/${file.name}"
|
||||||
ln -s ${tar_gcc} util/crossgcc/tarballs/${tar_name_gcc}
|
) (callPackage ./stable.nix { })
|
||||||
ln -s ${tar_binutils} util/crossgcc/tarballs/${tar_name_binutils}
|
}
|
||||||
ln -s ${tar_acpica} util/crossgcc/tarballs/${tar_name_acpica}
|
|
||||||
ln -s ${tar_nasm} util/crossgcc/tarballs/${tar_name_nasm}
|
|
||||||
patchShebangs util/genbuild_h/genbuild_h.sh util/crossgcc/buildgcc
|
patchShebangs util/genbuild_h/genbuild_h.sh util/crossgcc/buildgcc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
51
pkgs/development/tools/misc/coreboot-toolchain/stable.nix
Normal file
51
pkgs/development/tools/misc/coreboot-toolchain/stable.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ fetchurl }: [
|
||||||
|
{
|
||||||
|
name = "gmp-6.2.0.tar.xz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "09hmg8k63mbfrx1x3yy6y1yzbbq85kw5avbibhcgrg9z3ganr3i5";
|
||||||
|
url = "mirror://gnu/gmp/gmp-6.2.0.tar.xz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mpfr-4.1.0.tar.xz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "0zwaanakrqjf84lfr5hfsdr7hncwv9wj0mchlr7cmxigfgqs760c";
|
||||||
|
url = "mirror://gnu/mpfr/mpfr-4.1.0.tar.xz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mpc-1.2.0.tar.gz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "19pxx3gwhwl588v496g3aylhcw91z1dk1d5x3a8ik71sancjs3z9";
|
||||||
|
url = "mirror://gnu/mpc/mpc-1.2.0.tar.gz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "gcc-8.3.0.tar.xz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "0b3xv411xhlnjmin2979nxcbnidgvzqdf4nbhix99x60dkzavfk4";
|
||||||
|
url = "mirror://gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "binutils-2.35.1.tar.xz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "01w6xvfy7sjpw8j08k111bnkl27j760bdsi0wjvq44ghkgdr3v9w";
|
||||||
|
url = "mirror://gnu/binutils/binutils-2.35.1.tar.xz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "acpica-unix2-20200925.tar.gz";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "18n6129fkgj85piid7v4zxxksv3h0amqp4p977vcl9xg3bq0zd2w";
|
||||||
|
url = "https://acpica.org/sites/acpica/files/acpica-unix2-20200925.tar.gz";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "nasm-2.15.05.tar.bz2";
|
||||||
|
archive = fetchurl {
|
||||||
|
sha256 = "1l1gxs5ncdbgz91lsl4y7w5aapask3w02q9inayb2m5bwlwq6jrw";
|
||||||
|
url = "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in a new issue