mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
linux-firmware: fix build when cross-compiling
Using `findutils` in such a way where `callPackage` cannot splice it to use the `buildPlatform`'s package-set breaks building `linux-firmware` when `buildPlatform` != `hostPlatform`. Since `findutils` is already included in all `stdenv.mkDerivation` calls, we can get rid of pulling in the different `findutils` and re-use the one that works on `buildPlatform`.
This commit is contained in:
parent
8d642257fb
commit
e337131349
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user