mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
toybox: fix build with libxcrypt
This commit is contained in:
parent
7f0e9f0859
commit
eb2ed865eb
1 changed files with 7 additions and 3 deletions
|
@ -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 .";
|
||||
|
||||
|
|
Loading…
Reference in a new issue