toybox: fix build with libxcrypt

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