toybox: fix build with libxcrypt

This commit is contained in:
Martin Weinelt 2022-09-29 18:28:05 +02:00
parent 7f0e9f0859
commit eb2ed865eb
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,6 +1,6 @@
{
stdenv, lib, fetchFromGitHub, which,
buildPackages,
buildPackages, libxcrypt,
enableStatic ? stdenv.hostPlatform.isStatic,
enableMinimal ? false,
extraConfig ? ""
@ -18,8 +18,12 @@ stdenv.mkDerivation rec {
};
depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross
buildInputs = lib.optionals (enableStatic && stdenv.cc.libc ? static)
[ stdenv.cc.libc stdenv.cc.libc.static ];
buildInputs = [
libxcrypt
] ++lib.optionals (enableStatic && stdenv.cc.libc ? static) [
stdenv.cc.libc
stdenv.cc.libc.static
];
postPatch = "patchShebangs .";