Skip to content

Commit

Permalink
coreboot-toolchain: 4.16 -> 4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Jan 26, 2023
1 parent 972094a commit 88facf6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/tools/misc/coreboot-toolchain/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ let

stdenvNoCC.mkDerivation rec {
pname = "coreboot-toolchain-${arch}";
version = "4.16";
version = "4.19";

src = fetchgit {
url = "https://review.coreboot.org/coreboot";
rev = version;
sha256 = "sha256-PCum+IvJ136eZQLovUi9u4xTLLs17MkMP5Oc0/2mMY4=";
sha256 = "sha256-pGS+bfX2k/ot7sHL9aiaQpA0wtbHHZEObJ/h2JGF5/4=";
fetchSubmodules = false;
leaveDotGit = true;
postFetch = ''
Expand Down Expand Up @@ -70,7 +70,7 @@ let
);
in

lib.listToAttrs (map (arch: lib.nameValuePair arch (common arch {})) [
lib.listToAttrs (map (arch: lib.nameValuePair arch (common arch { })) [
"i386"
"x64"
"arm"
Expand Down
12 changes: 6 additions & 6 deletions pkgs/development/tools/misc/coreboot-toolchain/stable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
};
}
{
name = "mpfr-4.1.0.tar.xz";
name = "mpfr-4.1.1.tar.xz";
archive = fetchurl {
sha256 = "0zwaanakrqjf84lfr5hfsdr7hncwv9wj0mchlr7cmxigfgqs760c";
url = "mirror://gnu/mpfr/mpfr-4.1.0.tar.xz";
sha256 = "0gf3ibi7kzz39zj72qc9r607clyhm80gs8wbp71zzfkxasyrblgz";
url = "mirror://gnu/mpfr/mpfr-4.1.1.tar.xz";
};
}
{
Expand All @@ -35,10 +35,10 @@
};
}
{
name = "acpica-unix2-20211217.tar.gz";
name = "R10_20_22.tar.gz";
archive = fetchurl {
sha256 = "0521hmaw2zhi0mpgnaf2i83dykfgql4bx98cg7xqy8wmj649z194";
url = "https://acpica.org/sites/acpica/files/acpica-unix2-20211217.tar.gz";
sha256 = "11iv3jrz27g7bv7ffyxsrgm4cq60cld2gkkl008p3lcwfyqpx88s";
url = "https://github.com/acpica/acpica/archive/refs/tags//R10_20_22.tar.gz";
};
}
{
Expand Down
22 changes: 12 additions & 10 deletions pkgs/development/tools/misc/coreboot-toolchain/update.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p nix cacert git getopt

# shellcheck shell=bash

if [ ! -d .git ]; then
echo "This script needs to be run from the root directory of nixpkgs. Exiting."
exit 1
echo "This script needs to be run from the root directory of nixpkgs. Exiting."
exit 1
fi

pkg_dir="$(dirname "$0")"

src="$(nix-build . --no-out-link -A coreboot-toolchain.i386.src)"
urls=$($src/util/crossgcc/buildgcc -u)
urls=$("${src}/util/crossgcc/buildgcc" -u)

tmp=$(mktemp)
echo '{ fetchurl }: [' > $tmp
echo '{ fetchurl }: [' >"$tmp"

for url in $urls; do
name="$(basename $url)"
hash="$(nix-prefetch-url "$url")"
name="$(basename "$url")"
hash="$(nix-prefetch-url "$url")"

cat << EOF >> $tmp
cat <<EOF >>"$tmp"
{
name = "$name";
archive = fetchurl {
Expand All @@ -29,8 +31,8 @@ for url in $urls; do
EOF
done

echo ']' >> $tmp
echo ']' >>"$tmp"

sed -ie 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' $tmp
sed -ie 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' "$tmp"

mv $tmp $pkg_dir/sources.nix
mv "$tmp" "${pkg_dir}/sources.nix"

0 comments on commit 88facf6

Please sign in to comment.