toybox: fix build with libxcrypt

+7 -3
+7 -3
pkgs/tools/misc/toybox/default.nix
··· 1 { 2 stdenv, lib, fetchFromGitHub, which, 3 - buildPackages, 4 enableStatic ? stdenv.hostPlatform.isStatic, 5 enableMinimal ? false, 6 extraConfig ? "" ··· 18 }; 19 20 depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross 21 - buildInputs = lib.optionals (enableStatic && stdenv.cc.libc ? static) 22 - [ stdenv.cc.libc stdenv.cc.libc.static ]; 23 24 postPatch = "patchShebangs ."; 25
··· 1 { 2 stdenv, lib, fetchFromGitHub, which, 3 + buildPackages, libxcrypt, 4 enableStatic ? stdenv.hostPlatform.isStatic, 5 enableMinimal ? false, 6 extraConfig ? "" ··· 18 }; 19 20 depsBuildBuild = [ buildPackages.stdenv.cc ]; # needed for cross 21 + buildInputs = [ 22 + libxcrypt 23 + ] ++lib.optionals (enableStatic && stdenv.cc.libc ? static) [ 24 + stdenv.cc.libc 25 + stdenv.cc.libc.static 26 + ]; 27 28 postPatch = "patchShebangs ."; 29