toybox: fix build with libxcrypt

This commit is contained in:
Martin Weinelt
2022-10-09 18:10:38 +02:00
parent 7f0e9f0859
commit eb2ed865eb
+7 -3
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 .";