mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
[Backport release-24.05] linux-firmware: fix build when cross-compiling (#354376)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{ stdenvNoCC
|
||||
, fetchzip
|
||||
, findutils
|
||||
, lib
|
||||
, python3
|
||||
, rdfind
|
||||
@@ -13,7 +12,7 @@ let
|
||||
# in a perfectly pristine tree, so we can fake just enough of git to run it.
|
||||
gitStub = writeShellScriptBin "git" ''
|
||||
if [ "$1" == "ls-files" ]; then
|
||||
${lib.getExe findutils} -type f -printf "%P\n"
|
||||
find -type f -printf "%P\n"
|
||||
else
|
||||
echo "Git stub called with unexpected arguments $@" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user