From f18e17b2d2dc383c26f19fed82fa8fd1260aaf0f Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 2 May 2022 03:07:28 -0700 Subject: [PATCH] coreboot-toolchain: move patchShebangs outside of fetchgit This commit fixes the issue described in detail in the commit message of the previous commit. --- .../tools/misc/coreboot-toolchain/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/coreboot-toolchain/default.nix b/pkgs/development/tools/misc/coreboot-toolchain/default.nix index b4403938c72c..7e3604c3511a 100644 --- a/pkgs/development/tools/misc/coreboot-toolchain/default.nix +++ b/pkgs/development/tools/misc/coreboot-toolchain/default.nix @@ -1,4 +1,4 @@ -{ lib, callPackage }: +{ stdenv, lib, callPackage }: let common = arch: callPackage ( { bison @@ -22,12 +22,11 @@ let src = fetchgit { url = "https://review.coreboot.org/coreboot"; rev = version; - sha256 = "073n8yid3v0l9wgwnrdqrlgzaj9mnhs33a007dgr7xq3z0iw3i52"; + sha256 = "sha256-PCum+IvJ136eZQLovUi9u4xTLLs17MkMP5Oc0/2mMY4="; fetchSubmodules = false; leaveDotGit = true; postFetch = '' - patchShebangs $out/util/crossgcc/buildgcc - PATH=${lib.makeBinPath [ getopt ]}:$PATH $out/util/crossgcc/buildgcc -W > $out/.crossgcc_version + PATH=${lib.makeBinPath [ getopt ]}:$PATH ${stdenv.shell} $out/util/crossgcc/buildgcc -W > $out/.crossgcc_version rm -rf $out/.git ''; allowedRequisites = [ ]; @@ -41,6 +40,8 @@ let dontInstall = true; postPatch = '' + patchShebangs $out/util/crossgcc/buildgcc + mkdir -p util/crossgcc/tarballs ${lib.concatMapStringsSep "\n" (